What’s !important #17: Custom Highlight API, CSS Navigation Matching, Fixing text-stroke, and More
Different ways to use the lh unit
Ahmad Shadeed showcased different ways to use the lh unit, which, as it turns out, has a range of uses. If you’re not familiar, 1lh is equal to the computed line-height.
Bramus explained how the new scroll-axis-lock property facilitates diagonal scrolling (the default behavior only allows for scrolling one axis at a time).
An introduction to CSS navigation matching
Bramus also unveiled CSS navigation matching, which basically enables us to style elements based on where the user is navigating to or from.
It’s kind of mind-blowing, to be honest. Bramus actually published this right after I wrote What’s !important #16 (the last issue), but I just couldn’t let this one fly under the radar…
Since neither Chrome, Safari, nor Firefox has shipped a new stable version since What’s !important #16 (and because it’s Friday), let’s wrap this one up early. Instead, I’ll leave you with an interesting question — what’s the worst HTML element?
what is the worst html element? right answers only
— Zach Leatherman (@zachleat.com) 16:46 · Aug 13, 2026
See ya in a couple of weeks!
Fuente: Artículo original