:past

A selector used with WebVTT subtitles to style the text that has already been spoken in the current video caption.

/* Usage Example */
video::cue(:past) {
  /* Dims the subtitles that have already been played */
  color: gray;
}
Widely available Since 2015 94% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.

23+
7+
79+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC