Firefox 161 has been available since November 24, 2026 and brings three changes worth knowing about for web developers: the CSS function random(), the shared compression dictionaries of the HTTP standard “Compression Dictionary Transport”, and custom formats for the clipboard. There are also smaller additions to CSS, SVG and the Navigation API. The details come from the developer release notes on MDN Web Docs and from Mozilla’s release notes. Here is what you can use of it and where caution is needed.
What Firefox 161 brings for web developers
According to MDN, Firefox 161 was released on November 24, 2026. The developer page lists no notable changes for HTML and JavaScript, but several for CSS, HTTP and the web APIs. The most important are the random function random(), Compression Dictionary Transport, and the clipboard with custom formats. MDN also names the Navigation API, the CSS Typed Object Model, nested functions in var(), attr() and env(), referrerpolicy for SVG, and new WebTransport properties. Below we go through the points in turn.
CSS random(): random values without JavaScript
The random() function returns a random value straight in the stylesheet, between a minimum and a maximum, optionally in fixed steps. An example from the MDN syntax: rotate: random(0deg, 360deg, 45deg); picks an angle from 0, 45, 90 and so on up to 360 degrees for each matching element. Until now this took JavaScript or a series of :nth-child rules that only faked randomness. Typical uses are scattered decorative shapes, slightly tilted cards or staggered animation delays.
The optional first parameter, the “random key”, is the interesting part. It controls which random() calls share a random value. According to MDN, auto is the default and produces independent values. element-scoped gives the same value across several properties within one element, but a different one per element. property-scoped turns that around: every element gets the same value for the same property, while different properties differ. With a custom name such as --my-base, all elements and properties using that name share one value, and fixed 0.5 pins the base, which allows reproducible results. That makes it possible, for instance, to tie the width and height of an element to the same random draw.
What matters is the state of browser support. On its reference page, MDN still lists random() as “Limited availability” and therefore not Baseline, because the function does not work in some widely used browsers. Anyone using it in production should check the compatibility table and plan a fallback. The MDN example page shows the query @supports not (order: random(1, 2)) for that purpose. Without support, a layout then stays static instead of breaking.
Compression Dictionary Transport: smaller updates for script bundles
For performance teams, the second change is probably more important. Firefox 161 supports Compression Dictionary Transport. The idea: a server marks a response as a dictionary with the Use-As-Dictionary header. When the browser later requests a matching resource, it lists the stored dictionary in the Available-Dictionary header, and the server can compress the response against that dictionary, using the values dcb for Brotli or dcz for Zstandard in the Content-Encoding header.
The benefit is for files that change little between versions. The MDN explainer uses the example of a JavaScript library: if you move from my-library.v1.js to my-library.v2.js, you can use v1 as the dictionary for v2, so only the difference is transferred. According to MDN this can achieve an order of magnitude more compression than the built-in dictionaries of Brotli and Zstandard. MDN does, however, still classify the technology as experimental and likewise advises checking the compatibility table. For operators this means the server has to support the headers and manage dictionaries, otherwise nothing changes.
Clipboard, Navigation API and typed CSS values
The Clipboard API in Firefox 161 supports custom formats. Such a format is a MIME type prefixed with “web”, for example web text/x-my-format. Web apps can use it to exchange their own data formats with Clipboard.write() and Clipboard.read(). According to MDN, a custom format can only be read by a page that is same-origin with the page that wrote it. That limits access and helps, for example, when copying between two tabs of the same application.
In the Navigation API, NavigationTransition.to is new. The property returns the destination of the ongoing navigation, so code outside the navigate handler can find out where navigation is heading; a navigateerror handler can use it to report which navigation failed. The CSS Typed Object Model is now available as well: scripts read and write CSS values as typed objects instead of strings, for example through Element.computedStyleMap(). MDN points out that the color value interfaces such as CSSColorValue and CSSRGB are not supported in any browser.
Smaller changes concern var(), attr() and env(), which now accept nested functions in their first parameter, the referrerpolicy attribute for SVG elements such as <image> and <script>, and new WebTransport properties with which an application can state how many concurrent incoming streams it expects.
What users notice in Firefox 161
According to Mozilla’s release notes, version 161 also brings changes for end users: a freely assignable keyboard shortcut to copy the current tab’s URL, tab groups in the application menu, a section of classic themes including Proton and an OLED theme, and a VPN that can be switched on or off per site. There is also a button for quickly deleting browsing data. It is rolling out gradually and is therefore not visible to everyone at once. Mozilla publishes security fixes in its security advisories; anyone running Firefox in a company should read them there and update promptly.
What development teams should do now
- Try random(): use it in decorative areas, guard it with
@supports, and never for content that would become unusable without the effect. - Check dictionaries: if you ship script bundles often, Compression Dictionary Transport is worth testing on the server and CDN side, including whether your infrastructure supports the headers and the Brotli or Zstandard variants.
- Clipboard formats only where same-origin is enough, with a plain-text fallback.
- Document compatibility: the MDN tables change quickly; check the current state before you ship.
The topic fits earlier reports from the browser world. How platform decisions affect your code was shown recently by the removal of XSLT in Chrome 158. On the toolchain side, Vite+ 1.0 fits, and anyone working with Brotli compression should know about the Brotli flaw in Node.js. The full list of changes is in the MDN release notes for Firefox 161.



