5.5 Descendant selectors

Chapter 5 - Selectors - 5.5 Descendant selectors

Go to the relevant page of the specification.

c16-descendant-000
Descendant selectors (Contextual selectors)
c16-descendant-001
Contextual selectors
c16-descendant-002
Contextual selectors
descendant-selector-000
Selectors: Descendant selectors
Browsers should apply each rule to the descendant elements
descendant-selector-001
Selectors: Descendant selectors and universal selector
Browsers should apply each rule to the descendant elements
descendent-selector-001
Descendent selector does not apply to parent element
Descendent selectors are applied only to descendents.
descendent-selector-002
Descendent selector
Descendent selectors are applied only to descendents.
descendent-selector-003
Descendent selector with additional element between
Descendent selectors are applied to descendents even if additional elements separate parent and subject of selector.
descendent-selector-004
Descendent selector with incorrect parent element
Descendent selectors are applied only to descendents where the parent element matches.
descendent-selector-005
Grandchild selection with no children
Grandchild selection is applied only to elements which have grandchildren.
descendent-selector-006
Grandchild selection with no grandchildren
Grandchild selection is applied only to elements which have grandchildren.
descendent-selector-007
Grandchild selection
Grandchild selection is applied only to elements which are grandchildren.
descendent-selector-008
Descendent selector with ID attribute does not match elements without the ID attribute
Descendent selector with attribute applies only to applicable elements.
descendent-selector-009
Descendent selector with ID attribute
Descendent selector with attribute applies only to applicable elements.
descendent-selector-010
Descendent selector and tabs
A descendant selector can be separated by a tab.
descendent-selector-011
Descendent selector and newlines
A descendant selector can be separated by a newline.