From 9371f33dbf75a2eb8a570dbde1d0c27a5e7c82f4 Mon Sep 17 00:00:00 2001
From: Eric Willigers 3
- E F or E >> F
+ E F
an F element descendant of an E element
[[#descendant-combinators]]
- 1 or 4
+ 1
E > F
an F element child of an E element
@@ -2964,19 +2964,16 @@ Typed Child-indexed Pseudo-classes
Combinators
-Descendant combinator (
+Descendant combinator ( ) or (>>) )
At times, authors may want selectors to describe an element that is
the descendant of another element in the document tree (e.g., "an
em element that is contained within an H1 element").
The descendant combinator expresses such a relationship.
- It has two syntactic forms:
-
-
- A selector of the form ''A B'' or ''A >> B''' represents an element B that is an
+ A descendant combinator is whitespace that separates two compound selectors.
+
+ A selector of the form ''A B'' represents an element B that is an
arbitrary descendant of some ancestor element A.
) or (>>)
div p *[href]
>> form is introduced in Level 4.
- It was introduced to give the descendant combinator a visible, non-whitespace form
- and to bridge the gap between the child combinator (>)
- and the shadow-piercing descendant combinator (>>>) [[CSS-SCOPING-1]].
-
Child combinator (
@@ -3311,7 +3302,7 @@ Grammar
<simple-selector> = <>)
-