Web Platform Atlas
ENRUUADEFRESPLPTZHJA
W3C · CSS Working Group · w3c-selectors-4

Selectors Level 4

Chapters
142
Coverage EN
100.0%
MDN BCD
0
WPT tests
307
Interactive mode: term highlighting, MDN/WPT and BYOK translation of any chapter into EN.
⚡ Open in Live Atlas

Table of Contents (142 chapters)

ChapterSlots (EN)Interactive
Document Preamble ⚡ LIVE45 / 45Open in Atlas ↗
1 Introduction STATIC8 / 8Open in Atlas ↗
1.1 Module Interactions STATIC3 / 3Open in Atlas ↗
2 Selectors Overview STATIC226 / 226Open in Atlas ↗
3 Selector Syntax and Structure ⚡ LIVE1 / 1Open in Atlas ↗
3.1 Structure and Terminology ⚡ LIVE14 / 14Open in Atlas ↗
3.2 Data Model ⚡ LIVE9 / 9Open in Atlas ↗
3.2.1 Featureless Elements ⚡ LIVE14 / 14Open in Atlas ↗
3.3 Scoped Selectors ⚡ LIVE5 / 5Open in Atlas ↗
3.4 Relative Selectors ⚡ LIVE3 / 3Open in Atlas ↗
3.5 Pseudo-classes ⚡ LIVE7 / 7Open in Atlas ↗
3.6 Pseudo-elements ⚡ LIVE6 / 6Open in Atlas ↗
3.6.1 Syntax ⚡ LIVE4 / 4Open in Atlas ↗
3.6.2 Binding to the Document Tree ⚡ LIVE5 / 5Open in Atlas ↗
3.6.3 Pseudo-classing Pseudo-elements ⚡ LIVE5 / 5Open in Atlas ↗
3.6.4 Sub-pseudo-elements ⚡ LIVE4 / 4Open in Atlas ↗
3.6.5 Internal Structure ⚡ LIVE5 / 5Open in Atlas ↗
3.7 Characters and case sensitivity ⚡ LIVE8 / 8Open in Atlas ↗
3.8 Declaring Namespace Prefixes ⚡ LIVE2 / 2Open in Atlas ↗
3.9 Invalid Selectors and Error Handling ⚡ LIVE9 / 9Open in Atlas ↗
3.10 Legacy Aliases ⚡ LIVE2 / 2Open in Atlas ↗
4 Logical Combinations ⚡ LIVE3 / 3Open in Atlas ↗
4.1 Selector Lists ⚡ LIVE8 / 8Open in Atlas ↗
4.2 The Matches-Any Pseudo-class: :is() ⚡ LIVE9 / 9Open in Atlas ↗
4.3 The Negation (Matches-None) Pseudo-class: :not() ⚡ LIVE10 / 10Open in Atlas ↗
4.4 The Specificity-adjustment Pseudo-class: :where() ⚡ LIVE6 / 6Open in Atlas ↗
4.5 The Relational Pseudo-class: :has() ⚡ LIVE10 / 10Open in Atlas ↗
5 Elemental selectors ⚡ LIVE1 / 1Open in Atlas ↗
5.1 Type (tag name) selector ⚡ LIVE4 / 4Open in Atlas ↗
5.2 Universal selector ⚡ LIVE9 / 9Open in Atlas ↗
5.3 Namespaces in Elemental Selectors ⚡ LIVE20 / 20Open in Atlas ↗
5.4 The Defined Pseudo-class: :defined ⚡ LIVE5 / 5Open in Atlas ↗
6 Attribute selectors ⚡ LIVE3 / 3Open in Atlas ↗
6.1 Attribute presence and value selectors ⚡ LIVE19 / 19Open in Atlas ↗
6.2 Substring matching attribute selectors ⚡ LIVE12 / 12Open in Atlas ↗
6.3 Case-sensitivity ⚡ LIVE9 / 9Open in Atlas ↗
6.4 Attribute selectors and namespaces ⚡ LIVE7 / 7Open in Atlas ↗
6.5 Default attribute values in DTDs ⚡ LIVE10 / 10Open in Atlas ↗
6.6 Class selectors ⚡ LIVE12 / 12Open in Atlas ↗
6.7 ID selectors ⚡ LIVE9 / 9Open in Atlas ↗
7 Linguistic Pseudo-classes ⚡ LIVE1 / 1Open in Atlas ↗
7.1 The Directionality Pseudo-class: :dir() ⚡ LIVE5 / 5Open in Atlas ↗
7.2 The Language Pseudo-class: :lang() ⚡ LIVE20 / 20Open in Atlas ↗
8 Location Pseudo-classes ⚡ LIVE1 / 1Open in Atlas ↗
8.1 The Hyperlink Pseudo-class: :any-link ⚡ LIVE2 / 2Open in Atlas ↗
8.2 The Link History Pseudo-classes: :link and :visited ⚡ LIVE12 / 12Open in Atlas ↗
8.3 The Target Pseudo-class: :target ⚡ LIVE8 / 8Open in Atlas ↗
8.4 The Reference Element Pseudo-class: :scope ⚡ LIVE6 / 6Open in Atlas ↗
9 User Action Pseudo-classes ⚡ LIVE6 / 6Open in Atlas ↗
9.1 The Pointer Hover Pseudo-class: :hover ⚡ LIVE5 / 5Open in Atlas ↗
9.2 The Activation Pseudo-class: :active ⚡ LIVE5 / 5Open in Atlas ↗
9.3 The Input Focus Pseudo-class: :focus ⚡ LIVE5 / 5Open in Atlas ↗
9.4 The Focus-Indicated Pseudo-class: :focus-visible ⚡ LIVE12 / 12Open in Atlas ↗
9.5 The Focus Container Pseudo-class: :focus-within ⚡ LIVE2 / 2Open in Atlas ↗
10 Resource State Pseudo-classes ⚡ LIVE2 / 2Open in Atlas ↗
10.1 Media Playback State: the :playing, :paused, and :seeking pseudo-classes ⚡ LIVE4 / 4Open in Atlas ↗
10.2 Media Loading State: the :buffering and :stalled pseudo-classes ⚡ LIVE3 / 3Open in Atlas ↗
10.3 Sound State: the :muted and :volume-locked pseudo-classes ⚡ LIVE3 / 3Open in Atlas ↗
11 Element Display State Pseudo-classes ⚡ LIVE1 / 1Open in Atlas ↗
11.1 Collapse State: the :open pseudo-class ⚡ LIVE5 / 5Open in Atlas ↗
11.2 Popover State: the :popover-open pseudo-class ⚡ LIVE4 / 4Open in Atlas ↗
11.3 Modal (Exclusive Interaction) State: the :modal pseudo-class ⚡ LIVE3 / 3Open in Atlas ↗
11.4 Fullscreen Presentation State: the :fullscreen pseudo-class ⚡ LIVE2 / 2Open in Atlas ↗
11.5 Picture-in-Picture Presentation State: the :picture-in-picture pseudo-class ⚡ LIVE2 / 2Open in Atlas ↗
12 The Input Pseudo-classes ⚡ LIVE2 / 2Open in Atlas ↗
12.1 Input Control States ⚡ LIVE1 / 1Open in Atlas ↗
12.1.1 The :enabled and :disabled Pseudo-classes ⚡ LIVE5 / 5Open in Atlas ↗
12.1.2 The Mutability Pseudo-classes: :read-only and :read-write ⚡ LIVE3 / 3Open in Atlas ↗
12.1.3 The Placeholder-shown Pseudo-class: :placeholder-shown ⚡ LIVE3 / 3Open in Atlas ↗
12.1.4 The Automatic Input Pseudo-class: :autofill ⚡ LIVE2 / 2Open in Atlas ↗
12.1.5 The Default-option Pseudo-class: :default ⚡ LIVE3 / 3Open in Atlas ↗
12.2 Input Value States ⚡ LIVE1 / 1Open in Atlas ↗
12.2.1 The Selected-option Pseudo-classes: :checked, :unchecked, and :indeterminate ⚡ LIVE11 / 11Open in Atlas ↗
12.3 Input Value-checking ⚡ LIVE1 / 1Open in Atlas ↗
12.3.1 The Validity Pseudo-classes: :valid and :invalid ⚡ LIVE3 / 3Open in Atlas ↗
12.3.2 The Range Pseudo-classes: :in-range and :out-of-range ⚡ LIVE2 / 2Open in Atlas ↗
12.3.3 The Optionality Pseudo-classes: :required and :optional ⚡ LIVE2 / 2Open in Atlas ↗
12.3.4 The User-interaction Pseudo-classes: :user-valid and :user-invalid ⚡ LIVE5 / 5Open in Atlas ↗
13 Tree-Structural pseudo-classes ⚡ LIVE4 / 4Open in Atlas ↗
13.1 :root pseudo-class ⚡ LIVE3 / 3Open in Atlas ↗
13.2 :empty pseudo-class ⚡ LIVE5 / 5Open in Atlas ↗
13.3 Child-indexed Pseudo-classes ⚡ LIVE3 / 3Open in Atlas ↗
13.3.1 :nth-child() pseudo-class ⚡ LIVE13 / 13Open in Atlas ↗
13.3.2 :nth-last-child() pseudo-class ⚡ LIVE5 / 5Open in Atlas ↗
13.3.3 :first-child pseudo-class ⚡ LIVE6 / 6Open in Atlas ↗
13.3.4 :last-child pseudo-class ⚡ LIVE3 / 3Open in Atlas ↗
13.3.5 :only-child pseudo-class ⚡ LIVE2 / 2Open in Atlas ↗
13.4 Typed Child-indexed Pseudo-classes ⚡ LIVE2 / 2Open in Atlas ↗
13.4.1 :nth-of-type() pseudo-class ⚡ LIVE4 / 4Open in Atlas ↗
13.4.2 :nth-last-of-type() pseudo-class ⚡ LIVE4 / 4Open in Atlas ↗
13.4.3 :first-of-type pseudo-class ⚡ LIVE4 / 4Open in Atlas ↗
13.4.4 :last-of-type pseudo-class ⚡ LIVE3 / 3Open in Atlas ↗
13.4.5 :only-of-type pseudo-class ⚡ LIVE2 / 2Open in Atlas ↗
14 Combinators ⚡ LIVE1 / 1Open in Atlas ↗
14.1 Descendant combinator ( ) ⚡ LIVE8 / 8Open in Atlas ↗
14.2 Child combinator (>) ⚡ LIVE6 / 6Open in Atlas ↗
14.3 Next-sibling combinator (+) ⚡ LIVE4 / 4Open in Atlas ↗
14.4 Subsequent-sibling combinator (~) ⚡ LIVE3 / 3Open in Atlas ↗
15 Calculating a selector’s specificity ⚡ LIVE21 / 21Open in Atlas ↗
16 Grammar ⚡ LIVE16 / 16Open in Atlas ↗
16.1 <forgiving-selector-list> ⚡ LIVE10 / 10Open in Atlas ↗
17 API Hooks ⚡ LIVE3 / 3Open in Atlas ↗
17.1 Parse A Selector ⚡ LIVE5 / 5Open in Atlas ↗
17.2 Parse A Relative Selector ⚡ LIVE5 / 5Open in Atlas ↗
17.3 Match a Selector Against an Element ⚡ LIVE11 / 11Open in Atlas ↗
17.4 Match a Selector Against a Pseudo-element ⚡ LIVE9 / 9Open in Atlas ↗
17.5 Match a Selector Against a Tree ⚡ LIVE15 / 15Open in Atlas ↗
Appendix A: Guidance on Mapping Source Documents & Data to an Element Tree ⚡ LIVE27 / 27Open in Atlas ↗
Appendix B: Obsolete but Required -webkit- Parsing Quirks for Web Compat ⚡ LIVE12 / 12Open in Atlas ↗
Appendix C: Example Privacy-Preserving :visited Restrictions ⚡ LIVE16 / 16Open in Atlas ↗
18 Changes ⚡ LIVE1 / 1Open in Atlas ↗
18.1 Changes since the 22 January 2026 Working Draft ⚡ LIVE16 / 16Open in Atlas ↗
18.2 Changes since the 11 November 2022 Working Draft ⚡ LIVE12 / 12Open in Atlas ↗
18.3 Changes since the 7 May 2022 Working Draft ⚡ LIVE10 / 10Open in Atlas ↗
18.4 Changes since the 21 November 2018 Working Draft ⚡ LIVE17 / 17Open in Atlas ↗
18.5 Changes since the 2 February 2018 Working Draft ⚡ LIVE12 / 12Open in Atlas ↗
18.6 Changes since the 2 May 2013 Working Draft ⚡ LIVE25 / 25Open in Atlas ↗
18.7 Changes since the 23 August 2012 Working Draft ⚡ LIVE10 / 10Open in Atlas ↗
18.8 Changes since the 29 September 2011 Working Draft ⚡ LIVE7 / 7Open in Atlas ↗
18.9 Changes Since Level 3 ⚡ LIVE2 / 2Open in Atlas ↗
18.9.1 Conditional Logic ⚡ LIVE3 / 3Open in Atlas ↗
18.9.2 Interaction, Input and Forms ⚡ LIVE11 / 11Open in Atlas ↗
18.9.3 Hyperlinking Support ⚡ LIVE2 / 2Open in Atlas ↗
18.9.4 Clearer Expression of Authorial Intent ⚡ LIVE2 / 2Open in Atlas ↗
18.9.5 Media State ⚡ LIVE5 / 5Open in Atlas ↗
18.9.6 Internationalization Improvements ⚡ LIVE5 / 5Open in Atlas ↗
19 Acknowledgements ⚡ LIVE2 / 2Open in Atlas ↗
Privacy Considerations ⚡ LIVE3 / 3Open in Atlas ↗
Security Considerations ⚡ LIVE2 / 2Open in Atlas ↗
Conformance ⚡ LIVE1 / 1Open in Atlas ↗
Document conventions ⚡ LIVE8 / 8Open in Atlas ↗
Conformance classes ⚡ LIVE11 / 11Open in Atlas ↗
Partial implementations ⚡ LIVE2 / 2Open in Atlas ↗
Implementations of Unstable and Proprietary Features ⚡ LIVE2 / 2Open in Atlas ↗
Non-experimental implementations ⚡ LIVE4 / 4Open in Atlas ↗
Index ⚡ LIVE1 / 1Open in Atlas ↗
Terms defined by this specification ⚡ LIVE159 / 159Open in Atlas ↗
Terms defined by reference ⚡ LIVE134 / 134Open in Atlas ↗
References ⚡ LIVE1 / 1Open in Atlas ↗
Normative References ⚡ LIVE37 / 37Open in Atlas ↗
Non-Normative References ⚡ LIVE35 / 35Open in Atlas ↗
Issues Index ⚡ LIVE109 / 109Open in Atlas ↗