:current
Quick Summary for :current
The :current CSS pseudo-class selector is a time-dimensional pseudo-class that represents the element, or an ancestor of the element, that is currently being displayed. For example in a video with captions which are being displayed by WebVTT.
Code Usage for :current
:current(p, span) {   background-color: yellow; } 
More Details for :current

:current

The :current CSS pseudo-class selector is a time-dimensional pseudo-class that represents the element, or an ancestor of the element, that is currently being displayed. For example in a video with captions which are being displayed by WebVTT.

:current(p, span) {   background-color: yellow; } 

Syntax

:current

Examples

CSS

:current(p, span) {   background-color: yellow; } 

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

No specification found

No specification data found for css.selectors.current.Check for problems with this page or contribute a missing spec_url to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.

No compatibility data found for css.selectors.current.Check for problems with this page or contribute missing data to mdn/browser-compat-data.

See also

Web Video Text Tracks Format (WebVTT) :past :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
 
Related Search Terms
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
When I realized that, no individual step is hard in any process. Building this airport I'm standing in right now started with a guy writing the architectural plans on paper. That's not hard for him to do. Then laying the first beam isn't had. The whole thing is really hard. So, just take each step kind of piece by piece and when I was able to do that and stop trying to chase this prize and started putting in the work, things just started coming together.
Unknown
Random CSS Property

<easing-function>

The <easing-function> CSS data type denotes a mathematical function that describes the rate at which a numerical value changes.
<timing-function> css reference