Chapter 5 - Selectors - 5.7 Adjacent sibling selectors
Go to the relevant page of the specification.
- adjacent-000
-
Selectors: Adjacent selectors
Browsers should apply each rule to the adjacent element - adjacent-001
-
Selectors: Adjacent selectors without the space separator
Browsers should apply each rule to the adjacent element also without the space separator - adjacent-002
-
Selectors: Adjacent selectors with the universal selector
Browsers should apply each rule to the adjacent element when combined with the universal selector - combinator-001
-
Descendant combinators and newlines
Newlines can appear between a descendent combinator and the simple selectors around it. - combinator-002
-
Sibling combinators and spaces
Spaces can appear between a sibling combinator and its simple selectors. - combinator-003
-
Sibling combinators and newlines
Newlines can appear between a sibling combinator and the simple selectors around it. - combinator-004
-
Descendant combinators and spaces
Spaces can appear between a descendant combinator and the simple selectors around it. - dynamic-sibling-combinator-001 (dom)
-
Testing dynamic changes and the '+' combinator
Dynamically changing an attribute should cause selectors using '+' to match as needed. - focus-pseudo-class-001 (interact)
-
:focus pseudo-class - adjacent sibling selector
An HTML 4 textarea must be focused in order to enter text into it. The :focus pseudo-class applies to a textarea while it has the focus (accepts keyboard events or other forms of text input). - focus-pseudo-class-002 (interact)
-
:focus pseudo-class - adjacent sibling selector
An HTML 4 text input control must be focused in order to enter text into it. The :focus pseudo-class applies to a text input control while it has the focus (accepts keyboard events or other forms of text input). - focus-pseudo-class-003 (interact)
-
:focus pseudo-class - adjacent sibling selector
An HTML 4 radio button must receive focus state when clicking on it or when selecting it with the keyboard. The :focus pseudo-class applies to a radio button while it has the focus (accepts keyboard events or other forms of input). - sibling-selector-001
-
Simple sibling selector
Sibling selector only applies to immediate siblings. - sibling-selector-002
-
Sibling selector with non-element node
Sibling selector only applies to immediate siblings ignoring non-element nodes. - sibling-selector-003
-
Sibling selector with non element node
Sibling selector only applies to immediate siblings ignoring text nodes.