Links
CSS Nesting
One of our favorite CSS preprocessor features is now built into the language: nesting style rules.
CSS Masking
I think that the reason that kept me from not using a CSS mask is the browser support, they are partially supported in blink browsers (Chrome and Edge) and fully supported in Safari and Firefox. The great news is that CSS masking will be part of Interop 2023, which means we should expect cross-browser support (Yay!!). In this article, I will go through what CSS masking is, how it works, and a few use cases and examples for it.
CSS-only Widgets Are Inaccessible
Any person, post, article, tweet, expert, fortune cookie, company, etc., that claims its CSS-only interactive widget is accessible is probably wrong. While it may not be intentional, it is incumbent on you to confirm the accessibility because the person making the claim often has not.
Using color-mix() to create opacity variants
A few weeks ago, Adam Wathan posted a tweet asking if you could use
color-mix()
to adjust the opacity of a color. I replied that this is what relative color syntax was essentially created to do, but Adam Argyle pointed out that it can indeed be done withcolor-mix()
using a clever hack.
Windows high contrast mode and focus outlines or: My focus indicators were inaccessible
The problem is that if
box-shadow
is being used to style:focus
(or, better,:focus-visible
) ‘outlines’, they’ll be removed by WHCM, leaving keyboard-only users with no idea what element they’re currently focused on.
Videos
3 super small changes to improve your CSS
There are very simple and small changes we can make to our CSS to greatly improve the experience for many users, and in this video, I take a quick look at three of them.
Sponsor
Sponsored by Cloud Four
Thanks to Cloud Four for sponsoring this week’s newsletter! 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.