Bug 514964 - CSS editor detects error in font-family declaration even though there is none.
Summary: CSS editor detects error in font-family declaration even though there is none.
Status: NEW
Alias: None
Product: Efxclipse
Classification: Technology
Component: Tooling (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2017-04-08 01:58 EDT by Daniel Scalzi CLA
Modified: 2017-04-28 01:10 EDT (History)
3 users (show)

See Also:


Attachments
Displaying an error is detected when it should not be. (9.48 KB, image/png)
2017-04-08 01:58 EDT, Daniel Scalzi CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.