:past
Quick Summary for :past
The :past CSS pseudo-class selector is a time-dimensional pseudo-class that will match for any element which appears entirely before an element that matches :current. For example in a video with captions which are being displayed by WebVTT.
Code Usage for :past
:past(p, span) {   display: none; } 
More Details for :past

:past

The :past CSS pseudo-class selector is a time-dimensional pseudo-class that will match for any element which appears entirely before an element that matches :current. For example in a video with captions which are being displayed by WebVTT.

:past(p, span) {   display: none; } 

Syntax

:past

Examples

CSS

:past(p, span) {   display: none; } 

HTML

<video controls preload="metadata">   <source src="video.mp4" type="video/mp4" />   <source src="video.webm" type="video/webm" />   <track label="English" kind="subtitles" srclang="en" src="subtitles.vtt" default> </video> 

WebVTT

WEBVTT FILE  1 00:00:03.500 --> 00:00:05.000 This is the first caption  2 00:00:06.000 --> 00:00:09.000 This is the second caption  3 00:00:11.000 --> 00:00:19.000 This is the third caption 

Specifications

Specification
Selectors Level 4 # the-past-pseudo

See also

Web Video Text Tracks Format (WebVTT) :current :future

Last modified: Jan 24, 2022, by MDN contributors

Select your preferred language English (US)Français Change language

No Items Found.

Add Comment
Type in a Nick Name here
 
Other Categories in CSS
css
Search CSS
Search CSS by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

Subscribe to weekly updates about things i have added to the site or thought interesting during the last week.

You could also follow me on twitter or not... does anyone even use twitter anymore?

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote


seren spirit :(
Random CSS Property

grid-column

The grid-column CSS shorthand property specifies a grid item's size and location within a grid column by contributing a line, a span, or nothing (automatic) to its grid placement, thereby specifying the inline-start and inline-end edge of its grid area.
grid-column css reference