:is() CSS pseudo-class
The `: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.
쓸 수 있는 사용자96.1%caniuse 전 세계 집계 · 국내 수치 아님
완전 지원 브라우저7/7조건 없이 되는 것만 · Opera Mini 제외
조건이 붙는 브라우저0/7접두사 · 설정 · 부분 지원
표준화 상태W3C 초안명세 단계
브라우저별 지원
‘최초 지원’ 은 조건 없이 동작하는 가장 낮은 출시 버전입니다. 미리보기판(Safari TP)은 출시 버전이 아니므로 세지 않습니다.
‘조건부라도 되는 최초’ 가 앞선다면 그 사이 버전에서는 접두사를 붙이거나, 브라우저 설정을 켜거나, 일부 기능만 동작한다는 뜻입니다. 두 열이 같으면 조건 없이 쓸 수 있습니다.
원문·명세
- caniuse.com 에서 보기 — 버전별 전체 표와 각주 원문
- 명세 원문
수치는 caniuse-db(CC BY 4.0) 파싱값입니다. 설명문은 원문을 그대로 옮겼고 번역하거나 고쳐 쓰지 않습니다 — 기능 설명을 옮겨 쓰다 틀리면 그대로 잘못된 코드가 됩니다.