[
https://issues.apache.org/jira/browse/NETBEANS-2544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16840236#comment-16840236
]
Pete Whelpton commented on NETBEANS-2544:
-----------------------------------------
if import state at-rules are used, they *must* be the first declarations in the
stylesheet. If you move your import rules to the top of your stylesheet, can
you confirm that the parser error goes away (it does for me with the example
you provided):
W3C: [https://drafts.csswg.org/css-cascade-3/#at-ruledef-import]
MDN: [https://developer.mozilla.org/en-US/docs/Web/CSS/@import]
>From W3C spec "Any @import rules must precede all other at-rules and style
>rules in a style sheet (besides @charset, which must be the first thing in the
>style sheet if it exists), or else the @import rule is invalid."
> Unexcepted token WS (@import rule)
> ----------------------------------
>
> Key: NETBEANS-2544
> URL: https://issues.apache.org/jira/browse/NETBEANS-2544
> Project: NetBeans
> Issue Type: Bug
> Reporter: Joshua Bakker
> Priority: Minor
> Attachments: bug_netbeans.PNG, nb-10-css-import.png
>
>
> When an "@import" is used in CSS files, the CSS files will mark it as an
> error.
> For example, the following line:
> {code:java}
> @import
> url("//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css");
> {code}
> Will result in a red line between @import and url, saying the error
> "Unexcepted token WS", when the line in fact is a valid line. Even Internet
> Explorer 5.5 has full support for it, meaning that it's fully supported and
> should be marked as valid in Netbeans.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists