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: 155Edge
12–18Not supported
79+Supportedsince Jan 15, 2020
Current: 154Firefox
✕Not supportedup to 157
Current: 157Safari
1–6Not supported
7+Supportedsince Oct 22, 2013
Current: 27MobileChrome Android
18–18Not supported
25+Supportedsince Feb 27, 2013
Current: 155Firefox Android
✕Not supportedup to 157
Current: 157Safari iOS
1–6Not supported
7+Supportedsince Sep 18, 2013
Current: 27How 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
}Specification
Sub-features
Support for each part of the feature (2). The overall table above shows when the whole feature works.