Firefox 162 turns on view transitions between pages
Firefox 162, due on 8 December 2026, enables cross-document view transitions by default. It also adds the headingoffset attribute, new ARIA section roles, Declarative Web Push and streaming uploads.
On this page
Firefox 162 is due on 8 December 2026. Mozilla's developer release notes for the version, currently the Beta, list a set of changes that affect everyday websites. The biggest is that view transitions between pages are now on by default. The notes also say they are still a work in progress, so the final list may change before release.
View transitions between pages
A cross-document view transition animates the move from one page to another, for example a project card that grows into the hero image of the project's own page. Firefox 162 enables these by default on all channels.
Both pages have to opt in. Each one declares this rule in its CSS:
@view-transition { navigation: auto; }
With the rule on both pages, navigating between them plays a view transition animation. Without it, nothing changes, and pages load as they always have. This works on ordinary multi-page sites. It needs no JavaScript framework and no single-page app.
Headings and landmarks
Two HTML changes help with accessible structure:
- The
headingoffsetattribute is now enabled by default. It shifts the computed level of the headings inside an element by a set amount. This helps when the same block of content, such as a card or an embedded article, appears at different depths on different pages. - The
sectionheaderandsectionfooterARIA roles are now supported. They mark the header and footer of a section, separate from the page-levelbannerandcontentinfolandmarks.
CSS and JavaScript
- The CSS Typed Object Model is now enabled by default. It exposes CSS values as typed JavaScript objects through
attributeStyleMapandcomputedStyleMap(), with helpers such asCSS.px(). background-clip: border-areaclips a background to the area inside the element's border, including under transparent parts of the border.- A page can now use more than one
<script type="importmap">. Firefox merges them in document order, and later entries override earlier ones for the same name. - Regular expressions support
\Aand\z, which match only at the very start and end of the input, whatever themflag says.
Loading, uploads and notifications
document.parsed,document.contentLoadedanddocument.loadedeach return a promise. They resolve when the document has finished parsing, whenDOMContentLoadedhas fired, and whenloadhas fired.- Streaming request bodies are on by default. A
ReadableStreamcan be the body of aRequest, so an upload can start before the whole file is in memory. - Declarative Web Push is supported. A page can subscribe to push notifications with a
<link rel="push">element, without first registering a service worker in JavaScript. - Mouse buttons 4 and 5, usually back and forward, now fire
mousedown,mouseupandclickevents, asbuttonvalues 3 and 4.
Media and other changes
MP3 audio can now be appended to a Media Source Extensions buffer. WebRTC gains audio level statistics for local tracks and the iceCandidatePoolSize option. The Web Crypto API accepts the raw-secret and raw-public key format aliases. Some non-standard Gamepad attributes that only Firefox had are deprecated and now log a console warning.
The notes also list experimental CSS functions that ship turned off: ident(), inherit() and random-item(). They need a setting in about:config, so visitors will not see them.
What it means for your site
- Page transitions now work by default in Firefox. If you have wanted a smoother move between pages on a multi-page site, add the
@view-transitionrule to both pages and test it in Firefox Beta. Browsers without support simply load the next page. - Respect reduced motion. If you add transitions, wrap the rule in a
prefers-reduced-motionmedia query so visitors who ask for less motion do not get it. - Check heading levels on reused components. If a site repeats the same block at different depths,
headingoffsetis a way to keep the heading outline correct. Check support in the other browsers you target before relying on it. - Review mouse handlers. If your site listens to
clickormousedownwithout checking which button was pressed, back and forward buttons may now trigger it in Firefox. - Watch the console. If a game or kiosk page reads
Gamepadattributes, look for the new deprecation warnings.