Black Friday. Not a happy-sounding name, but…deals, you know? Geoff already put a Black Friday 2026 Deals post together almost two weeks ago, but I always do a last-minute sweep for things to put in the newsletter, so before we get into it, here are a few deals that I saw while scanning my go-to blogs:
Join the greatest community of front-end nerds you'll find anywhere, and get access to the Discord server, discounts in the CSS-Tricks store, and more!
Understanding CSS random()
Much has been said about CSS random() already, but it remains a tricky function to wrap your head around. It did click with me at one point, but because it wasn’t Baseline at the time, I didn’t quite develop the muscle memory for it. Every time I play around with it it’s like, “wait, how does this work again?” That seems to be the common theme over on our Discord as well.
Our very own Mat Marquis explained how random() works, and perfect timing too, because it’s officially Baseline as of today thanks to the release of Firefox 161. With regular usage, it should start to sink in. If it doesn’t, then I’m probably just getting old.
Apple HomeView launched on November 13th, so Jen Simmons from the WebKit team talked a bit about how it works. Most importantly (for us web dev nerds), Jen pointed out the key web platform features for HomeView devices.
A few examples:
Schema to present recipes in a special way
Semantic HTML for voice-friendly controls
<track> captions for better video experiences
svh units + overflow-y: auto for tall modals on short screens
These aren’t web platform features for HomeView, but it’s important to know about them when building for it (and similar devices). The article goes into more detail.
State of HTML 2026 survey results
The State of HTML 2026 survey results are out. If you love HTML and are obsessed with data and rankings, this is basically heaven. If not, you’re still going to love them, but you might want to start with Kilian Valkhof’s conclusion for the summary of new capabilities, lingering frustrations, and more.
Thanks to Random MDN, a Bluesky bot created by Stefan Judis that posts random MDN docs, I just found out about <meta name="text-scale">. I love this account because it helps me discover (and rediscover) new HTML, CSS, and JavaScript features.
What does <meta name="text-scale" content="scale"> do, you ask? Well, you know when you make text larger or smaller via the operating system settings? This meta tag opts the website into that feature. Chrome only, for now.
CSS Golf
CSS…what?CSS Golf! Basically, try to make the given CSS look like the target CSS in the smallest number of moves. Nail it in one move for a hole in one!
In this e-book, web pioneer Andy Clarke shows you how to uncover a company’s story, develop a distinctive visual language, and combine color, typography, imagery, and layout to create designs that people recognize and remember. Now available in the CSS-Tricks Store!
[Geoff:] Did you open up Mat's article above on CSS random()? You totally should. It led me down my own rabbit hole testing all of the various ways it "caches" random values and passes them around (or not) to other matching elements and components. It's wild to think about all the ways there are to do that. I was really surprised, actually, because it turns out a random number in CSS isn't just a random number — I mean, it is, but the function does so much more than generating a number.
There's so much you can do with that generated random number that I'm working on a set of notes about what I've learned. I hope to get that up in the next week, but thought I'd share a little "cheat sheet" I put together in the meantime.
Six different ways! Random numbers are shared between matching elements by default, but they can be scoped to the first instance alone, scoped to a specific property in the element's ruleset, and given a custom name used to pass the number around between other components. You've really gotta credit the CSSWG for nailing down an entire system for passing property values around. That sort of inheritance is exactly what Danny looked at a last year.