« * K @dakroub.co

Jonathan Schneider @jonathanschndr.de

2026-11-19 17:45 UTC

Video state is now styleable with CSS alone. Chrome 158 shipped :playing, :paused and :muted, so they work in Chrome, Firefox and Safari. My tiny demo: playing videos get a green outline, paused ones go grayscale, and :has() swaps the label. Zero JS listeners. #CSS #webdev

1 picture (not shown on this phone): Browser render of my demo page in Chrome 158 headless, titled "Style video state with CSS alone". Left: the CSS used: v…

8 likes, 2 reposts, 2 replies

3 Next post4 More from @jonathanschndr.deBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup