Skip to content

Commit 3f47779

Browse files
committed
[selectors-4] Cross-link to grammar from terminology sections.
1 parent 9eed0f9 commit 3f47779

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

selectors-4/Overview.bs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,8 @@ Structure and Terminology</h3>
550550
<a>ID selector</a>,
551551
or <a>pseudo-class</a>
552552
is a <a>simple selector</a>.
553+
It is represented by <<simple-selector>>
554+
in the selectors <a href="#grammar">grammar</a>.
553555

554556
A <dfn id="compound" export>compound selector</dfn>
555557
is a sequence of <a>simple selectors</a>
@@ -558,6 +560,8 @@ Structure and Terminology</h3>
558560
If it contains a <a>type selector</a> or <a>universal selector</a>,
559561
that selector must come first in the sequence.
560562
Only one type selector or universal selector is allowed in the sequence.
563+
A <a>compound selector</a> is represented by <<compound-selector>>
564+
in the selectors <a href="#grammar">grammar</a>.
561565

562566
Note: As whitespace represents the <a>descendant combinator</a>,
563567
no whitespace is allowed between the <a>simple selectors</a>
@@ -567,6 +571,8 @@ Structure and Terminology</h3>
567571
a sequence of one or more <a>compound selectors</a>
568572
separated by <a>combinators</a>.
569573
It represents an element in a particular relationship to other elements.
574+
Complex selectors are represented by <<complex-selector>>
575+
in the selectors <a href="#grammar">grammar</a>.
570576

571577
A <dfn export for=selector>combinator</dfn> represents a particular kind of relationship
572578
between the elements matched by the <a>compound selectors</a> on either side.
@@ -585,7 +591,8 @@ Structure and Terminology</h3>
585591
when the type is either unimportant or specified in the surrounding prose;
586592
if the type is important and unspecified,
587593
it defaults to meaning a <a>list of complex selectors</a>.
588-
See [[#grouping]] for further details on <a>selector lists</a>.
594+
See [[#grouping]] for further details on <a>selector lists</a>
595+
and the various <<*-selector-list>> productions in the <a href="#grammar">grammar</a>.
589596

590597
The <dfn export for=selector lt="subject|subject of a selector">subject of a selector</dfn> is
591598
the element(s) that selector is defined to be about:
@@ -698,6 +705,8 @@ Relative Selectors</h3>
698705
Relative selectors, once absolutized,
699706
can additionally be <a>scoped</a>.
700707

708+
Relative selectors are represented by <<relative-selector>> in the selectors <a href="#grammar">grammar</a>.
709+
701710
<h4 id='absolutizing'>
702711
Absolutizing a Relative Selector</h4>
703712

0 commit comments

Comments
 (0)