coderef

Time-relative pseudo-selectorsLimited availability

The :past and :future CSS pseudo-classes match prior or upcoming text track cues during media playback.

Not yet supported in all major browsers — check the table and provide a fallback.

Browser support

DesktopChrome
1–22Not supported
23+Supportedsince Nov 6, 2012
Current: 155
Edge
12–18Not supported
79+Supportedsince Jan 15, 2020
Current: 154
Firefox
✕Not supportedup to 157
Current: 157
Safari
1–6Not supported
7+Supportedsince Oct 22, 2013
Current: 27
MobileChrome Android
18–18Not supported
25+Supportedsince Feb 27, 2013
Current: 155
Firefox Android
✕Not supportedup to 157
Current: 157
Safari iOS
1–6Not supported
7+Supportedsince Sep 18, 2013
Current: 27

How to use

Not supported in Firefox, Firefox Android. Use feature detection below and provide a fallback (or a polyfill) for those browsers.

Example

Full syntax and examples are on MDN: :future.

Feature detection

CSS · check before using
@supports selector(:future) {
  /* styles that use :future */
}

/* or in JavaScript */
if (CSS.supports("selector(:future)")) {
  // use it
}

Sub-features

Support for each part of the feature (2). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
future2379✕725✕7
past2379✕725✕7