CSS has made a quiet leap. With :has(), container queries and modern layout, you now do in styling what used to need a chunk of JavaScript.
Less code, fewer bugs
Components that respond to their own container instead of the screen, or styling that depends on what is inside — it is more robust and faster than the same logic in JavaScript.
Our take
Every rule the browser handles natively is a rule we don't have to maintain. We happily lean on the platform where we can.



