New CSS that can actually be used in 2024 | Thomasorus
Logical properties, container queries, :has
, :is
, :where
, min()
, max()
, clamp()
, nesting, cascade layers, subgrid, and more.
Well, the clever CSS techniques just keep on comin’ from Trys—I’m learning so much from him!
Logical properties, container queries, :has
, :is
, :where
, min()
, max()
, clamp()
, nesting, cascade layers, subgrid, and more.
I like the approach here: logical properties and sensible default type and spacing.
Picture me holding Trys back and telling him, “Leave it alone, mate, it’s not worth it!”
Laying out sheet music with CSS grid—sounds extreme until you see it abstracted into a web component.
We need fluid and responsive music rendering for the web!
This is a great thought exercise in progressive enhancement …that Scott then turns into a real exercise!
You might want to use `display: contents` …maybe.
If you’re going to toggle the display of content with CSS, make sure the more complex selector does the hiding, not the showing.
Separate your concerns.
Styling a document about The Culture novels of Iain M Banks.
Using the CSS trinity of feature queries, logical properties, and unset.