Skip to content
← All posts

Tagged

CSS

14 posts

Web3 min read

How :has() changed the way I write components

The parent selector we asked for since 2003 has been shipping for years now. It does not just save a class name. It moves state out of JavaScript entirely.

Web2 min read

Container queries killed my breakpoints

Media queries ask how big the window is. That was never the question. Components care about the space they are given, and now they can ask.

Web3 min read

View transitions without a framework

Animating between two states used to mean keeping both in the DOM and choreographing them by hand. The browser will now do the hard part for you, in about six lines.

From The Wire