Links
Surprising Facts About New CSS Selectors
I set out to learn a bit about how CSS nesting works, especially the new
&
selector, and I ended up on a deep dive into the:is()
selector and its siblings.
Workarounds for buggy gradients
Unfortunately, if you’ve experimented with this much, you may have run into some weird behavior when building any gradients to white, black, gray, or transparent. This is especially bad when using blue, but it does affect other hues as well. Look at the teal and purple that shows up in these gradients, when they really should consist only of shades of blue…
Using CSS content-visibility to boost your rendering performance
In this article, we will dive into the benefits and practical use cases of the
content-visibility
CSS property, as well as situations where it might not be the most suitable option.
Messing About with CSS Gradients
I’m not a person who creates CSS “art” (as in drawings), but I do like messing about with CSS gradients and seeing what comes up. Playing around with gradients in conjunction with CSS background properties (
background-position
,background-size
,background-repeat
) is a great way to get to grips with those properties too.
Addressing Accessibility Concerns With Using Fluid Type
The CSS
clamp()
function is often paired with viewport units for “fluid” font sizing that scales the text up and down at different viewport sizes. As common as this technique is, several voices warn that it opens up situations where text can fail WCAG Success Criterion 1.4.4, which specifies that text should scale up to at least 200% when the user’s browser reaches its 500% maximum zoom level. Max Barvian takes a deep look at the issue and offers ideas to help address it.
Videos
Subgrid & Container Queries change how we can create layouts
In this video, I explore a classic subgrid example, and then step things up with the use of container queries, using that to add a subgrid to featured element across a few break points, and also looking at how container queries can break subgrid if we try to use them both on the same element.
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.