Links
The State of CSS Survey 2024
It's amazing to witness the speed at which CSS keeps evolving. While the past decade has been all about building a solid foundation for layout (Flexbox, Grid) and syntax (variables) the future promises to be about going much further than most of us ever dreamed of.
The CSS contain property
When we apply
contain
to an element we’re isolating it (and it’s descendents) from the rest of the page, and this isolation what opens those possibilities. There are different types of containment which all do different things, and we’ll be getting into each of them.
Spoiler Alert: it needs to be accessible
Now, I could do what I usually do and write some long winded junk about what a spoiler is, how it’s essentially a glorified disclosure widget… maybe mention something about the
details
andsummary
elements and how they likely wouldn’t be sufficient for all use cases. Blah blah blah. Boring. Instead, I’m just going to tell you what I’d expect from a spoiler component if someone were to build one, or if one were to ever be standardized.
CSS finally adds vertical centering in 2024
In 2024, browsers have implemented
align-content
for flow layout. This has some advantages: You do not need flexbox or grid, just 1 CSS property for alignment. Therefore, the content doesn’t need to be wrapped in a div. It’s amazing that CSS finally has a single property to control vertical align after decades of progress!
Basic keyboard shortcut support for focused links
This is one of those cases where circumstances at my job led to needing to document expected behavior in order to create “synthetic” links via JavaScript. Sometimes this sort of thing is regrettably unavoidable. A large part of the effort was capturing all the different action you can perform with keyboard interaction when an anchor element is focused. Turns out, there’s a lot!
Videos
The “Other” C in CSS
I know what you're thinking, "like we need another C in CSS!" This talk is about understanding how the CSS you write affects the accessibility of the user interfaces that you create, because like it or not, CSS affects more than just the visual presentation of elements, its effects cascade down into the HTML and accessibility layer.
Sponsor
Sponsored by Cloud Four
Thanks to Cloud Four for sponsoring this week’s newsletter! They solve complex responsive web design and development challenges for ecommerce, healthcare, fashion, B2B, SaaS, and nonprofit organizations.
If you’d like to help with the costs of running Friday Front-End, you can back our Patreon for as little as a dollar a month.