w3c / Unicorn

Unicorn - W3C's Unified Validator
https://validator.w3.org/unicorn/
Other
128 stars 60 forks source link

CSS validator reports a syntax error for complex :not selector #188

Closed rakutaro closed 8 years ago

rakutaro commented 8 years ago

The following type of use of :not selector causes a syntax error. Browsers can handle this well, but doesn't this conform to the specification?

.someclass:not(.otherclass, #someid, #otherid) { ... }

rakutaro commented 8 years ago

Sorry, that doesn't work on browsers, either. It should be written like:

.someclass:not(.otherclass):not(#someid):not(#otherid) { ... }