Re: [csswg-drafts] [selectors4] Name the “functional pseudo-class like :matches() with 0 specificity”

As we're testing what's actually set or not within the pseduo-class selector I liked the idea of calling it `isset`:

`:isset(.foo, .bar) .baz`

In terms of googling that would be easier to find than a simple `:is` or `:as`.

That, however, doesn't tell us that this selector is not specific, but that's a general problem of using a pseudo-class for this task I think. If more of these selectors are coming I'd prefer to see them separated into a new selector type rather than trying to fit into an existing pseudo-class system.

Looking at this from a functional side of things what this selector is actually tries to do is to set a default value that can be easily overridden, so `:defaults()` comes to mind.

Also, 

-- 
GitHub Notification of comment by CyberAP
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2143#issuecomment-362909506 using your GitHub account

Received on Sunday, 4 February 2018 14:11:04 UTC