Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The :current CSS pseudo-class selector is a time-dimensional pseudo-class that represents an element or the ancestor of an element that is currently being displayed. For example, this pseudo-class can be used to represent a video that is being displayed with captions by WebVTT.
:current(p, span) {
background-color: yellow;
}