:is() CSS pseudo-class
- WDThe :is()
(formerly :matches()
, formerly :any()
) pseudo-class checks whether the element at its position in the outer selector matches any of the selectors in its selector list. It's useful syntactic sugar that allows you to avoid writing out all the combinations manually as separate selectors. The effect is similar to nesting in Sass and most other CSS preprocessors.
IE
- 5.5 - 10: Not supported
- 11: Not supported
Edge
- 12 - 18: Not supported
- 79 - 87: Disabled by default
- 88 - 100: Supported
- 101: Supported
Firefox
- 2 - 3.6: Support unknown
- 4 - 77: Partial support
- 78 - 99: Supported
- 100: Supported
- 101 - 102: Supported
Chrome
- 4 - 14: Support unknown
- 15 - 64: Partial support
- 65 - 67: Disabled by default
- 68 - 87: Disabled by default
- 88 - 100: Supported
- 101: Supported
- 102 - 104: Supported
Safari
- 3.1 - 4: Not supported
- 5: Support unknown
- 5.1 - 8: Partial support
- 9 - 13.1: Partial support
- 14 - 15.3: Supported
- 15.4: Supported
- TP: Supported
Opera
- 9 - 12.1: Not supported
- 15 - 51: Partial support
- 52 - 54: Disabled by default
- 55 - 74: Disabled by default
- 75 - 85: Supported
- 86: Supported
- 87: Supported
Safari on iOS
- 3.2 - 6.1: Support unknown
- 7 - 8.4: Partial support
- 9 - 13.7: Partial support
- 14 - 15.3: Supported
- 15.4: Supported
Opera Mini
- all: Not supported
Android Browser
- 2.1 - 3: Support unknown
- 4 - 4.4.4: Partial support
- 101: Supported
Opera Mobile
- 10 - 12.1: Not supported
- 64: Supported
Chrome for Android
- 101: Supported
Firefox for Android
- 100: Supported
UC Browser for Android
- 12.12: Partial support
Samsung Internet
- 4 - 14.0: Partial support
- 15.0: Supported
- 16.0: Supported
QQ Browser
- 10.4: Disabled by default
Baidu Browser
- 7.12: Partial support
KaiOS Browser
- 2.5: Partial support