CKTIS / CSS
::cue — styling WebVTT captions
The ::cue pseudo-element styles WebVTT captions; its argument-taking form selects particular text fragments.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
::cue { color: white; }
::cue(selector) { color: yellow; }::cue targets an entire WebVTT cue. ::cue(selector) selects a cue or its internal nodes. The notation ::cue() names the functional family, not a valid invocation with an empty argument.
The selector operates on the WebVTT tree, not ordinary DOM descendants. For example, .accent matches a class on a c tag.
Only specified properties apply, including color and background-color; margin is ignored. Position cues through WebVTT settings. In the example, the STYLE block must precede the first cue.
Examples
WEBVTT
STYLE
::cue { color: white; background-color: black; }
::cue(.accent) { color: yellow; }
00:00:00.000 --> 00:00:05.000
Hello <c.accent>world</c>.
Result
Hello world.
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.