w3c / Unicorn

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

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

Closed rakutaro closed 7 years ago

rakutaro commented 7 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 7 years ago

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

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