This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 235868 - CSS3 @supports is reported as an error in edditor
Summary: CSS3 @supports is reported as an error in edditor
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: CSS Editor (show other bugs)
Version: 8.2
Hardware: PC Windows 7
: P4 normal with 9 votes (vote)
Assignee: Milutin Kristofic
Depends on:
Reported: 2013-09-12 10:54 UTC by Sladex
Modified: 2018-10-01 12:45 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Sladex 2013-09-12 10:54:34 UTC


@supports (flex-wrap: wrap) { }
Unexpected token LPAREN found
Unexpected token WS found
Unexpected token RPAREN found

@supports not (flex-wrap: wrap) { }
Unexpected token NOT found
Unexpected token LPAREN found
Comment 1 JanGen 2016-01-18 11:48:08 UTC
Stumble on this issue in production, so a fix/enhancement/support is welcome

It is a Candidate Recommendation at the moment
Comment 2 Sarke 2016-10-25 20:03:12 UTC
This is still an issue.

@supports is a very useful feature and I would hate to not use it simply because it breaks the syntax highlighting in the rest of the document.

It is currently supported by Chrome, Firefox, Opera, Safari (incl iOS), and Edge.
Comment 3 Eccenux 2018-10-01 12:45:35 UTC
This is now supported by all major browsers. See:

And also `@supports` can be used safely with old browsers (as rules in `@supports` clause would be ignored e.g. by IE). Only `not` operator is not safe for IE.

See also: