Skip to content

Commit 691157d

Browse files
committed
[selectors4] Clarifications to selector productions.
1 parent 1644c74 commit 691157d

2 files changed

Lines changed: 31 additions & 15 deletions

File tree

selectors/Overview.html

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,9 @@ <h3 id=scoping><span class=secno>3.3. </span> Scoped Selectors</h3>
13301330
<p>There are three methods of scoping selectors:
13311331

13321332
<dl>
1333-
<dt><dfn id=scope-contained>scope-contained</dfn> selectors
1333+
<dt><dfn id=scope-contained-selectors
1334+
title="scope-contained | scope-contained selector">scope-contained
1335+
selectors</dfn>
13341336

13351337
<dd> With this method of scoping, selectors match as if the <a
13361338
href="#scoping-element"><i>scoping element</i></a> were the root of the
@@ -1339,13 +1341,17 @@ <h3 id=scoping><span class=secno>3.3. </span> Scoped Selectors</h3>
13391341
href="#roo-pseudo"><code>:root</code></a> pseudo-class, however, still
13401342
only matches the actual root of the document.)
13411343

1342-
<dt><dfn id=scope-filtered>scope-filtered</dfn> selectors
1344+
<dt><dfn id=scope-filtered
1345+
title="scope-filtered | scope-filtered selector">scope-filtered</dfn>
1346+
selectors
13431347

13441348
<dd> With this method of scoping, a selector matches if the <i>subject</i>
13451349
of the selector is within the scope, even if other components of the
13461350
selector are outside the scope.
13471351

1348-
<dt><dfn id=scope-relative>scope-relative</dfn> selectors
1352+
<dt><dfn id=scope-relative
1353+
title="scope-relative | scope-relative selector">scope-relative</dfn>
1354+
selectors
13491355

13501356
<dd> With this method of scoping, "<a
13511357
href="#scope-pseudo"><code>:scope</code></a> " (the <a
@@ -1372,7 +1378,7 @@ <h3 id=scoping><span class=secno>3.3. </span> Scoped Selectors</h3>
13721378

13731379
<p> On the other hand, the selectors within an <a href="#HTML5"
13741380
rel=biblioentry>[HTML5]<!--{{HTML5}}--></a> scoped stylesheet define <a
1375-
href="#scope-contained"><i>scope-contained</i></a> selectors.
1381+
href="#scope-contained-selectors"><i>scope-contained</i></a> selectors.
13761382
</div>
13771383

13781384
<h4 id=absolutizing><span class=secno>3.3.1. </span> Absolutizing a
@@ -4110,19 +4116,25 @@ <h2 id=grammar><span class=secno>16. </span><a id=formal-syntax></a>
41104116
<dl>
41114117
<dt><dfn id=ltselector><var>&lt;selector></var></dfn>
41124118

4113-
<dd> A <code>complex_selector_list</code>.
4119+
<dd> A <code>complex_selector_list</code> production representing a <a
4120+
href="#selector-list"><i>selector list</i></a>.
41144121

41154122
<dt><dfn id=ltrelative-selector><var>&lt;relative-selector></var></dfn>
41164123

4117-
<dd> A <code>scope_relative_selector_list</code>.
4124+
<dd> A <code>scope_relative_selector_list</code> production representing a
4125+
<a href="#selector-list"><i>selector list</i></a> comprised of <a
4126+
href="#scope-relative"><i>scope-relative selectors</i></a>.
41184127

41194128
<dt><dfn id=ltcompound-selector><var>&lt;compound-selector></var></dfn>
41204129

4121-
<dd> A <code>compound_selector_list</code>.
4130+
<dd> A <code>compound_selector_list</code> production representing a <a
4131+
href="#selector-list"><i>selector list</i></a> comprised of <a
4132+
href="#compound"><i>compound selectors</i></a>.
41224133

41234134
<dt><dfn id=ltid-selector><var>&lt;id-selector></var></dfn>
41244135

4125-
<dd> An <code>id</code>.
4136+
<dd> An <code>id</code> production representing an <a
4137+
href="#id-selector"><i>ID selector</i></a>
41264138
</dl>
41274139

41284140
<h2 id=conformance><span class=secno>17. </span> Conformance</h2>

selectors/Overview.src.html

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -645,21 +645,21 @@ <h3 id="scoping">
645645
<p>There are three methods of scoping selectors:
646646

647647
<dl>
648-
<dt><dfn>scope-contained</dfn> selectors
648+
<dt><dfn title="scope-contained | scope-contained selector">scope-contained selectors</dfn>
649649
<dd>
650650
With this method of scoping, selectors match as if
651651
the <i>scoping element</i> were the root of the document:
652652
all <i>compound selectors</i> must match elements within the scope.
653653
(The <code>:root</code> pseudo-class, however,
654654
still only matches the actual root of the document.)
655655

656-
<dt><dfn>scope-filtered</dfn> selectors
656+
<dt><dfn title="scope-filtered | scope-filtered selector">scope-filtered</dfn> selectors
657657
<dd>
658658
With this method of scoping, a selector matches if
659659
the <i>subject</i> of the selector is within the scope,
660660
even if other components of the selector are outside the scope.
661661

662-
<dt><dfn>scope-relative</dfn> selectors
662+
<dt><dfn title="scope-relative | scope-relative selector">scope-relative</dfn> selectors
663663
<dd>
664664
With this method of scoping,
665665
"<code>:scope</code> " (the <code>:scope</code> pseudo-class followed by a space)
@@ -3025,19 +3025,23 @@ <h2 id="grammar"><a id="formal-syntax"></a>
30253025
<dl>
30263026
<dt><dfn><var>&lt;selector></var></dfn>
30273027
<dd>
3028-
A <code>complex_selector_list</code>.
3028+
A <code>complex_selector_list</code> production representing
3029+
a <i>selector list</i>.
30293030

30303031
<dt><dfn><var>&lt;relative-selector></var></dfn>
30313032
<dd>
3032-
A <code>scope_relative_selector_list</code>.
3033+
A <code>scope_relative_selector_list</code> production representing
3034+
a <i>selector list</i> comprised of <i>scope-relative selectors</i>.
30333035

30343036
<dt><dfn><var>&lt;compound-selector></var></dfn>
30353037
<dd>
3036-
A <code>compound_selector_list</code>.
3038+
A <code>compound_selector_list</code> production representing
3039+
a <i>selector list</i> comprised of <i>compound selectors</i>.
30373040

30383041
<dt><dfn><var>&lt;id-selector></var></dfn>
30393042
<dd>
3040-
An <code>id</code>.
3043+
An <code>id</code> production representing
3044+
an <i>ID selector</i>
30413045
</dl>
30423046

30433047

0 commit comments

Comments
 (0)