The official MDN Web Docs account, now on Bluesky. We deliver the best web docs around.
Visit → https://mdn.dev
Contribute → https://mdn.dev/community

@
The official MDN Web Docs account, now on Bluesky. We deliver the best web docs around.
Visit → https://mdn.dev
Contribute → https://mdn.dev/community
Behind door 4 of our advent calendar is… CSS shape(), which shipped in Firefox 148. Draw clip-path shapes using path-style commands with real CSS units like % and calc(). developer.mozilla.org/en-US/docs/W...
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...
Behind door 2 is… the Navigation API, which shipped in Firefox 147. Intercept, handle, and inspect navigations, without the hacks you needed to make `history.pushState()` work. developer.mozilla.org/en-US/docs/W...
From now until the 25th, we're going to highlight a web platform feature that shipped in Firefox in 2026!
Behind door 1 is… CSS anchor positioning, which shipped in Firefox 147. Tether tooltips, menus, and popovers to another element using only CSS. developer.mozilla.org/en-US/docs/W...
Custom compression dictionaries landed in Firefox 161, letting you massively reduce the size of bundle updates. Here's how they work:
Thanks, @developer.chrome.com! We’re excited to help shape Modern Web Guidance and make sure it works across every browser 🙌
Scoped custom element registries are newly available in all major engines, meaning multiple implementations can use the same tag name without clashing. Here's how they work:
Scroll-driven animations are newly available in all major engines! Here's how they work:
JPEG XL is newly available in all major engines, but how does it stack up against other formats?
What should we ship in 2027? Rank your favourite features & create your wishlist: interop-rank.fxdx.dev
JPEG XL vs AVIF for web use-cases. Jake Archibald benchmarked both: AVIF produces smaller lossy files for photos, screenshots, and transparency, while JPEG XL wins at lossless. His default is AVIF 4:4:4 at high effort. #image #performance
Support dark mode with one CSS property 🌙
color-scheme tells the browser your page supports light, dark, or both. Form controls, scrollbars, and system colors adapt automatically.
> :root { color-scheme: light dark; }
Learn more 👇
developer.mozilla.org/en-US/docs/...
Hold object references without preventing garbage collection 🗑️
`WeakRef` lets you reference an object while allowing it to be GC’d if nothing else holds a strong reference. Use for caches, and pair with FinalizationRegistry.
Learn more 👇
developer.mozilla.org/en-US/docs/...