There's an ideal set of sizing constraints for custom <select>, but the CSS is a bit tricky.
Here's how to make it work, and a tour of new CSS features along the way.

@jakearchibald.com
Developer of sorts at @webdevs.firefox.com, but this is my personal account. No thought goes unpublished. He/him.
There's an ideal set of sizing constraints for custom <select>, but the CSS is a bit tricky.
Here's how to make it work, and a tour of new CSS features along the way.
I've been enjoying this! cluesbysam.com is another good one.
Behind door 5 is… media pseudo-classes, which shipped in Firefox 150. Style a video while it's :playing, :paused, :muted, or :buffering, using only CSS. developer.mozilla.org/en-US/docs/W...
Two Rings
CSS only, using random(), sibling-*(),and some trig.
Live demo on @codepen.io: codepen.io/editor/amit_...
At Mozilla we're prototyping Promises for document.parsed, document.contentLoaded and document.loaded. You can use these instead of the readystatechange event.
Head to `about:config`, toggle `dom.document.load_promises.enabled` to try it out. Also try the polyfill: github.com/keithamus/do...
This doesn't seem right to me. Check your DMs 😁
When and how CSS custom property values are calculated might not be what you expect, and it has a big impact on your styles…
See for yourself jakearchibald.com/2026/jpeg-xl...
AVIF is crazy-good for non-photos, whereas all other lossy formats struggle. You can just use AVIF for everything on the web and it just works.
Memes: the alternative to a sense of humour
Behind door 3 of our advent calendar is… the HTML Sanitizer API, which shipped in Firefox 148. `element.setHTML(untrustedString)` parses & inserts the HTML with XSS-dangerous content removed. developer.mozilla.org/en-US/docs/W...
He's learned his lesson and he's very sorry.
It seems it is time for my annual rant about `font-display: swap` being one of the most evil things we've unleashed upon the platform. And that it shouldn't have been made the default in Google Fonts! If you're using it then well done you for gaming your perf metrics at the expense of your users. 😠
Firefox Nightly is the first browser to score 100 on Interop 2026! wpt.fyi/interop-2026
✊✊
Sir @joshwcomeau.com goes so hard with the `corner-shape: bevel;`. Nesting them is a very cool look.
Now these are scores that all developers can be happy about. Interop 2027 close to perfect across the board.
This is lovely to hear, and thank you so much for sending it. This stuff absolutely means a lot. I'm glad the content is landing well. I sometimes wish it was getting the 'thropic guy's numbers, but eh I'm having fun making the content, and Mozilla are happy for me to continue, so that's great.
I support you in this unfollow.
🚨 1,000 DAYS. STILL WAITING.
Apple was legally required to comply with the Digital Markets Act 1000 days ago.
Yet not a SINGLE browser vendor has been able to upgrade its existing EU users to its own browser engine.
Last Day to Sign the Open Letter!
open-web-advocacy.org/blog/1000-da...
1/14🧵
We have really special guest speakers to kick off 2027: @jakearchibald.com and @ainsleydev.bsky.social . Grab your ticket now, as there are only 100 of them, and we'll see you all on Thursday 28 January.