Firefox 153 just landed, and comes with web platform features like:
🎉 popover="hint"
🎉 Picture-in-picture
🎉 IDB getAllRecords()
🎉 JS Promise Integration for wasm
🎉 JS import-as-text
…And more! developer.mozilla.org/en-US/docs/M...

@
Official Firefox account for people who build on the web. Learn about the things we're working on to grow and improve the web platform.
Firefox 153 just landed, and comes with web platform features like:
🎉 popover="hint"
🎉 Picture-in-picture
🎉 IDB getAllRecords()
🎉 JS Promise Integration for wasm
🎉 JS import-as-text
…And more! developer.mozilla.org/en-US/docs/M...
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...
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...
Please file these, or let us know how to reproduce these issues, so we can fix them. Often it's relying on non-standards behaviour, or even bugs in other engines.
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...
Ohhh, maybe you're thinking of navigator? developer.mozilla.org/en-US/docs/W...
Firefox Nightly is the first browser to score 100 on Interop 2026! wpt.fyi/interop-2026
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...
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...
Oh I absolutely agree jakearchibald.com/2016/caching...
Yeah, that would work for a multi-page app that has a lot of common parts.
For updates to a single page, it seems there's something missing in the feature. I'm following up here github.com/httpwg/http-...
Correct, but then for first visits you'd be sending your bundle, which contained React, and then React as a dictionary. It seems better to use your bundle as the dictionary.
Full docs on MDN: 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:
This is the last week to submit/tweak your Interop 2027 list! Let us know which web platform features you'd like us to work on: interop-rank.fxdx.dev
If you get hold of an element with JS, and do: el._secret = 'hello!'; And later see that el._secret === 'hello!', then it's the same element. Otherwise it isn't.
With bfcache, the page state is held in memory, so the elements aren't recreated.
If you do: div.innerHTML = div.innerHTML …you're recreating all the elements, since it round-trips via the parser. Whereas: const nodes = [...el.childNodes]; el.replaceChildren(); el.append(...nodes); …you're not recreating the nodes here, you're just moving them around.
You can think of it as an internal ID, or you can think of it as how handles to DOM nodes work in JavaScript. If you remove and re-add a node with JS, it's still the same node, so it's still the same element. Page reloads are different - because all elements are newly parsed from HTML…
Allllmost. Thankfully bsky allows videos longer than 3mins now.