When implementing Dark Mode and ways to toggle it, developers currently need to duplicate code and roll their own toggle implementation.
Safari TP 137 just dropped with unflagged support for :has(). Often dubbed “the parent selector”, :has() is way more than that…
Create (pure CSS) Scroll-Linked Animations with Element-based Offsets using @scroll-timeline from the “Scroll-linked Animations“ CSS Specification.
In “CSS Box Sizing Module Level 4” a new aspect-ratio CSS property is defined. Let’s take a look at how to use it.
Don't fiddle too much with your forms‘ layout. Even a small innocent piece of CSS could leave you with a poor #UX and degrade #A11Y.