Tagged
Front-end
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.
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.
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.
The HTML elements nobody uses
Every year we npm install something the browser already has. Six elements and one attribute that replace a library each, with the caveats that stop people finding them.
Web performance is a budget, not a sprint
Every performance sprint I have been on made the site fast for about four months. The teams whose sites stayed fast did something different, and it was not technical.