Skip to content

Some WebVTT WPT use ::cue(*) selector incorrectly #7

@danae404

Description

@danae404

These are the tests I found:
webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/background_properties.html
webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/background_shorthand.html
webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/background_shorthand_css_relative_url.html
webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/color_hex.html
webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/color_hsla.html
webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/color_rgba.html
webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/font_properties.html
webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/font_shorthand.html
webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/inherit_values_from_media_element.html
webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/not_allowed_properties.html
webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/outline_properties.html
webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/outline_shorthand.html
webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/text-decoration_line-through.html
webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/text-decoration_overline.html
webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/text-decoration_overline_underline_line-through.html
webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/text-decoration_underline.html
webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/text-shadow.html
webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/white-space_normal_wrapped.html
webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/white-space_nowrap_wrapped.html
webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/white-space_pre-line_wrapped.html
webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/white-space_pre-wrap_wrapped.html
webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/white-space_pre.html
webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/white-space_pre_wrapped.html

These tests use the selector ::cue(*) to attempt to style the cue, but ::cue(*) only targets internal nodes within the cue (like <rt>, <c>,<b>, etc.), not plain text. And the .vtt files used in these tests only have cues with just plain text. Based on the ref files for these tests is appears the intention is to have the style apply to the cues, so we should replace ::cue(*) with ::cue in these tests.

And we should write a test that tests the functionality of ::cue(*).

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