-
Notifications
You must be signed in to change notification settings - Fork 31
Editorial: Clarify ::cue(*) and ::cue(:root) and WebVTT Leaf Node Objects #534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
danae404 marked as non substantive for IPR from ash-nazg. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! A couple small things.
</pre> | ||
</td> | ||
<td class=long> | ||
<p><a>WebVTT Internal Node Objects</a> (except the root <a>list of WebVTT Node Objects</a>) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should the except the root
parenthetical be removed from the class selector example below (line 5099) as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont think you can assign a class to plain text in the cue; you have to encompass the text in a <c>
to give it a class. So keeping the parenthesis still makes sense.
index.bs
Outdated
|
||
</dl> | ||
|
||
<br> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, much better!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like br
being used for spacing purposes. Can we use CSS instead? dl + p { margin-top: 2em }
index.bs
Outdated
empty string. Note that the <a>universal selector</a> matches all <a>WebVTT Internal Node Objects</a>, including the | ||
root <a>list of WebVTT Node Objects</a>.</p></li> | ||
|
||
<li><p>''::cue(:root)'' is equivalent to ''::cue''.</p></li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be better to make these two as a <p class=note>
to keep this change editorial, since notes are non-normative.
…ng around the WebVTT Leaf Nodes section so that it does not get confused to be subclass of WebVTT Internal Nodes
46e5068
to
898f395
Compare
This PR addresses #533
Add notes and examples to clarify that
::cue(*)
matches all WebVTT internal node objects, including the root list of WebVTT node objects, and to clarify that::cue(:root)
is a valid selector and it matches the same elements as::cue
.Because a universal selector is within the class of type selectors, delete the parenthical note in Example 22 that makes it seem that type selectors can never match the root.
Also add spacing around the section of Leaf Node Objects. The current spacing makes it easy to confuse it as a subclass of WebVTT Internal Node Objects.
Preview | Diff