Intent to Implement :is()
Contact Emails
Spec
https://drafts.csswg.org/selectors-4/#zero-matches
Design Doc
https://docs.google.com/document/d/1ZUNf4eXIABKYtOb2IWdzkHqMSC9GWgX5740McqQ5ur0/edit?usp=sharing
TAG Review
https://github.com/w3ctag/design-reviews/issues/219
Summary
CSS Selectors 4 will be introducing the specificity-adjustment pseudo-class. The specificity-adjustment pseudo-class is a functional pseudo-class taking a selector list as its argument, and represents each of the elements in this selector list. It has the same syntax and functionality as :matches(), however neither the pseudo-class nor any of its arguments contribute to the specificity of the selector. Currently, the name for this selector is still in discussion, however it will be referred to as :is() in this Intent to Implement, design doc, and initial commits.
Motivation
The motivation for implementing :is() is to introduce style filters to selectors while keeping the associated style declarations easy to override. An example of this can be found in the spec.
Risks
Interoperability and Compatibility
There is some interoperability risk in implementing this feature as no other major browsers (Firefox, Safari, and Edge) support it yet. However, since it is already included in the CSS Selectors 4 specification, other browsers should be likely to also implement it in the future.
The compatibility risk is very low as this feature is very similar to :matches(), which has already been implemented.
Ergonomics
N/A.
Activation
It should not be challenging for developers to use this feature once it is implemented.
Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?
Yes.
Feature dashboard link
https://www.chromestatus.com/feature/4600991135563776
Requesting approval to ship?
No.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/5eb3244d-4abe-4967-9538-75d2ce9196be%40chromium.org.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/7585a83e-ddf6-183d-78de-682ce8f5e513%40inkedblade.net.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/7585a83e-ddf6-183d-78de-682ce8f5e513%40inkedblade.net.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CABc02_L%2BfT0cRM_gpxstwT3P9OWmqj3gZ0SNwdWWgVO8jMvPqA%40mail.gmail.com.