@@ -1134,30 +1134,32 @@ <h2 id=syntax><span class=secno>3. </span> Selector Syntax and Structure</h2>
11341134
11351135 < h3 id =structure > < span class =secno > 3.1. </ span > Structure and Terminology</ h3 >
11361136
1137- < p > The term < dfn id =selector > selector</ dfn > can refer to a < i > simple
1138- selector</ i > , < a href ="#compound "> < i > compound selector</ i > </ a > , < a
1139- href ="#complex "> < i > complex selector</ i > </ a > , or < a
1137+ < p > The term < dfn id =selector > selector</ dfn > can refer to a < a
1138+ href ="#simple "> < i > simple selector</ i > </ a > , < a
1139+ href ="#compound-selector "> < i > compound selector</ i > </ a > , < a
1140+ href ="#complex-selector "> < i > complex selector</ i > </ a > , or < a
11401141 href ="#selector-list "> < i > selector list</ i > </ a > .
11411142
1142- < p > A < dfn id =complex > complex selector</ dfn > is a chain of one or more < a
1143- href ="#compound "> compound selectors</ a > separated by < a
1144- href ="#combinators "> combinators</ a > .
1145-
1146- < p > A < dfn id =compound > compound selector</ dfn > is a chain of < a
1147- href ="#simple "> simple selectors</ a > that are not separated by a < a
1148- href ="#combinators "> combinator</ a > . It always begins with a < a
1149- href ="#type-selectors "> type selector</ a > or a (possibly implied) < a
1150- href ="#universal-selector "> universal selector</ a > . No other type selector
1151- or universal selector is allowed in the sequence.
1152-
1153- < p > A < dfn id =simple > < a href ="#simple "> simple selector</ a > </ dfn > is either a
1154- < a href ="#type-selectors "> type selector</ a > , < a
1155- href ="#universal-selector "> universal selector</ a > , < a
1156- href ="#attribute-selectors "> attribute selector</ a > , < a
1157- href ="#class-html "> class selector</ a > , < a href ="#id-selectors "> ID
1158- selector</ a > , or < a href ="#pseudo-classes "> pseudo-class</ a > .
1159-
1160- < p > < dfn id =combinator > Combinators</ dfn > are punctuation that represent a
1143+ < p > A < dfn id =complex-selector > complex selector</ dfn > is a chain of one or
1144+ more < a href ="#compound-selector "> < i > compound selectors</ i > </ a > separated
1145+ by < a href ="#combinator "> < i > combinators</ i > </ a > .
1146+
1147+ < p > A < dfn id =compound-selector > compound selector</ dfn > is a chain of < a
1148+ href ="#simple "> < i > simple selectors</ i > </ a > that are not separated by a < a
1149+ href ="#combinator "> < i > combinator</ i > </ a > . It always begins with a < a
1150+ href ="#type-selector "> < i > type selector</ i > </ a > or a (possibly implied) < a
1151+ href ="#universal-selector0 "> < i > universal selector</ i > </ a > . No other type
1152+ selector or universal selector is allowed in the sequence.
1153+
1154+ < p > A < dfn id =simple > simple selector</ dfn > is either a < a
1155+ href ="#type-selector "> < i > type selector</ i > </ a > , < a
1156+ href ="#universal-selector0 "> < i > universal selector</ i > </ a > , < a
1157+ href ="#attribute-selector "> < i > attribute selector</ i > </ a > , < a
1158+ href ="#class-selector "> < i > class selector</ i > </ a > , < a
1159+ href ="#id-selector "> < i > ID selector</ i > </ a > , or < a
1160+ href ="#pseudo-class "> < i > pseudo-class</ i > </ a > .
1161+
1162+ < p > A < dfn id =combinator > combinator</ dfn > is punctuation that represents a
11611163 particular kind of relationship between the compound selectors on either
11621164 side. Combinators in Selectors level 4 include: whitespace,
11631165 "greater-than sign" (U+003E, < code > ></ code > ), "plus
@@ -1215,8 +1217,8 @@ <h3 id=scoping><span class=secno>3.3. </span> Scoped Selectors</h3>
12151217
12161218 < dd > With this method of scoping, selectors match as if the < a
12171219 href ="#scoping-element "> < i > scoping element</ i > </ a > were the root of the
1218- document: all < a href ="#compound "> < i > compound selectors</ i > </ a > must
1219- match elements within the scope. (The < a
1220+ document: all < a href ="#compound-selector "> < i > compound selectors</ i > </ a >
1221+ must match elements within the scope. (The < a
12201222 href ="#roo-pseudo "> < code > :root</ code > </ a > pseudo-class, however, still
12211223 only matches the actual root of the document.)
12221224
@@ -1236,9 +1238,9 @@ <h3 id=scoping><span class=secno>3.3. </span> Scoped Selectors</h3>
12361238
12371239 < h3 id =pseudo-classes > < span class =secno > 3.4. </ span > Pseudo-classes</ h3 >
12381240
1239- < p > The pseudo-class concept is introduced to permit selection based on
1240- information that lies outside of the document tree or that cannot be
1241- expressed using the other simple selectors.
1241+ < p > The < dfn id = pseudo-class > pseudo-class </ dfn > concept is introduced to
1242+ permit selection based on information that lies outside of the document
1243+ tree or that cannot be expressed using the other simple selectors.
12421244
12431245 < p > A pseudo-class always consists of a "colon" (< code > :</ code > )
12441246 followed by the name of the pseudo-class and, for functional
0 commit comments