Styling video Elements by State with `:playing` and `:muted`
Changing how a video looks by playback or mute state has meant syncing CSS classes from JavaScript events. Media state pseudo-classes let CSS select browser-managed states directly. This article covers all seven, plus :has().


