Community
Participate
Working Groups
Created attachment 267705 [details] Displaying an error is detected when it should not be. I am developing a JavaFX application. This involves using CSS stylesheets which are editable in the Eclipse IDE. When writing the stylesheet I declare an external font using @font-face. The exact code is posted below: @font-face { font-family: 'IM FELL Great Primer'; src: url('IMFeGPrm28P.ttf'); } The font file declares a name using space therefore in order to use it I encapsulate the name with quotes in the declaration as per CSS syntax. The IDE detects this as an error and highlights the text 'IM FELL Great Primer' red. The error the IDE thinks this error is "Invalid font family name." This is not an error as described in the CSS 2 specification. This is no different in CSS 3. Read here: https://www.w3.org/TR/CSS2/fonts.html#font-family-prop I will attach an image below. I can verify that this code works as I was able to successfully run the program with the desired font even though this "error" was present.
Hi, Daniel. I'm not sure what Product and Component this belongs to, but I am sure it does not belong to JDT Annotation Processing Tools. Could you make a stab at recategorizing this? Thanks!
Probably belongs in web tools.
What type does this show up as in the Problems View? WTP's CSS component does contain a Validator.
(In reply to Nitin Dahyabhai from comment #3) > What type does this show up as in the Problems View? WTP's CSS component > does contain a Validator. Sorry, does NOT contain a validator.
Pretty sure the message comes from http://git.eclipse.org/c/efxclipse/org.eclipse.efxclipse.git/tree/bundles/tooling/org.eclipse.fx.ide.css/src/org/eclipse/fx/ide/css/validation/CssDslJavaValidator.java#n157 .