Skip to content

Commit bd70b0a

Browse files
authored
Editorial: Clarify usages of ::cue(*) and ::cue(:root), and add spacing around the WebVTT Leaf Nodes section so that it does not get confused to be subclass of WebVTT Internal Nodes (#534)
1 parent 7ff8d0a commit bd70b0a

1 file changed

Lines changed: 30 additions & 2 deletions

File tree

index.bs

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5043,8 +5043,7 @@ present in the <{video}> element's document tree.</p>
50435043
</pre>
50445044
</td>
50455045
<td class=long>
5046-
<p><a>WebVTT Internal Node Objects</a> (except the root <a>list of WebVTT Node Objects</a>)
5047-
with the given name.</p>
5046+
<p><a>WebVTT Internal Node Objects</a> with the given name.</p>
50485047

50495048
<pre>
50505049
WEBVTT
@@ -5061,6 +5060,30 @@ present in the <{video}> element's document tree.</p>
50615060
</pre>
50625061
</td>
50635062
</tr>
5063+
<tr>
5064+
<td class=long>
5065+
<p><a>Universal selector</a> in ''::cue()''</p>
5066+
5067+
<pre>
5068+
video::cue(*:not(:root)) {
5069+
color: yellow;
5070+
}
5071+
</pre>
5072+
</td>
5073+
<td class=long>
5074+
<p>All <a>WebVTT Internal Node Objects</a></p>
5075+
5076+
<pre>
5077+
WEBVTT
5078+
5079+
00:00:00.000 --> 00:00:08.000
5080+
White!
5081+
&lt;c>Yellow!&lt;/c>
5082+
&lt;i>Yellow!&lt;/i>
5083+
&lt;u>Yellow!&lt;/u>
5084+
</pre>
5085+
</td>
5086+
</tr>
50645087
<tr>
50655088
<td class=long>
50665089
<p><a>Class selector</a> in ''::cue()''</p>
@@ -5406,6 +5429,11 @@ being treated as follows:</p>
54065429
Object">WebVTT Internal Node Objects</a> are considered as being in the namespace expressed as the
54075430
empty string.</p></li>
54085431

5432+
<li><p class=note>The <a>universal selector</a> matches all <a>WebVTT Internal Node Objects</a>, including the
5433+
root <a>list of WebVTT Node Objects</a>.</p></li>
5434+
5435+
<li><p class=note>''::cue(:root)'' is equivalent to ''::cue''.</p></li>
5436+
54095437
<li><p>For the purposes of attribute selector matching, <a lt="WebVTT Internal Node Object">WebVTT
54105438
Internal Node Objects</a> have no attributes, except for <a lt="WebVTT Voice Object">WebVTT Voice
54115439
Objects</a>, which have a single attribute named "<code>voice</code>" whose value is the value of

0 commit comments

Comments
 (0)