Bug 514964

Summary: CSS editor detects error in font-family declaration even though there is none.
Product: [Technology] Efxclipse Reporter: Daniel Scalzi <d_scalzi>
Component: ToolingAssignee: Project Inbox <efxclipse-inbox>
Status: NEW --- QA Contact:
Severity: minor    
Priority: P3 CC: d_scalzi, jarthana, thatnitind
Version: unspecifiedKeywords: needinfo
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:
Attachments:
Description Flags
Displaying an error is detected when it should not be. none

Description Daniel Scalzi CLA 2017-04-08 01:58:56 EDT
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.
Comment 1 Walter Harley CLA 2017-04-08 23:26:19 EDT
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!
Comment 2 Jay Arthanareeswaran CLA 2017-04-10 02:41:55 EDT
Probably belongs in web tools.
Comment 3 Nitin Dahyabhai CLA 2017-04-10 02:55:17 EDT
What type does this show up as in the Problems View? WTP's CSS component does contain a Validator.
Comment 4 Nitin Dahyabhai CLA 2017-04-10 02:55:43 EDT
(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.