-
Notifications
You must be signed in to change notification settings - Fork 31
Description
I am curious if I have this css:
::cue(*) {
color: green
}
And this .vtt:
WEBVTT
00:00:00.000 --> 00:00:05.000
This is a test subtitle
Should "This is a test subtitle" be green?
The section of spec that discusses ::cue(selector) says this:
The ::cue(selector) pseudo-element with an argument must have an argument that consists of a CSS selector [SELECTORS4]. It matches any WebVTT Internal Node Object constructed for the matched element that also matches the given CSS selector [...]
Because ::cue(selector) matches any WebVTT Internal Node Object that also matches the selector, and because Lists of WebVTT Node Objects are a subclass of WebVTT Internal Node Object, this seems to indicate that ::cue(*) should match the list/root.
However, later the spec says that type selectors match "WebVTT Internal Node Objects (except the root list of WebVTT Node Objects) with the given name."
This seems like a contradiction to what the spec says earlier. Is one of these statements an error that should be fixed?