Skip to content

Does ::cue(*) == ::cue(|*) == ::cue(*|*) ? And are they all valid? #15

@danae404

Description

@danae404

The spec says "For the purposes of element type and universal selectors, WebVTT Internal Node Objects are considered as being in the namespace expressed as the empty string."

As far as I can tell, there are no restrictions against using the namespace separator in the WebVTT spec.

The file selectors/cue_function/root_namespace.html has the following css:

::cue {
    font-family: Ahem, sans-serif
}
::cue(*|*) {
    color: red
}
::cue(|*) {
    color: green
}

The .vtt is a basic cue:

WEBVTT

00:00:00.000 --> 00:00:05.000
This is a test subtitle

In the expected file, the cue's color is green. Is this expected behavior? Are these selectors valid, and are ::cue(*|*) and ::cue(|*) equivalent? I think the answer is yes, but I would like to make sure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions