Skip to main content

Harshal V. LADHE

All Content Tagged :has()

All content tagged with the CSS :has() relational pseudo-class, for styling an element based on what it contains.

Content tagged has-selector

  • Snippet::playing and :paused: Style Media by Playback State

    Style audio and video players from their playback state.
    Style audio and video by playback state with CSS :playing, :paused, :buffering and :muted, plus :has() patterns and a JavaScript fallback.
    Published at:
    Categories:CSS
    Estimated reading time:7 min read