Re: [csswg-drafts] [selectors] Functional pseudo-class like :matches() with 0 specificity

Interesting idea, certainly more readable than current specificity hacks!
However, I wonder if it would be better to add single-argument `:is()` to level 4 and extend to allow for a second argument in Level 5? I'm a bit concerned that the extra functionality might slow down implementations, and since selectors don't fall back as gracefully as other unsupported CSS features, adoption will be slow anyway.

GitHub Notification of comment by LeaVerou
Please view or discuss this issue at using your GitHub account

Received on Friday, 15 September 2017 19:33:40 UTC