Firefox 159 release notes for developers (Beta)
This article provides information about the changes in Firefox 159 that affect developers. Firefox 159 is the current Beta version of Firefox and ships on October 27, 2026.
Note: The release notes for this Firefox version are still a work in progress.
Changes for web developers
CSS
Removals
- The legacy masonry layout syntax has been removed: the
masonryvalue of thegrid-template-columnsandgrid-template-rowsproperties, and themasonry-auto-flowproperty. This syntax was only enabled by default in Nightly, behind thelayout.css.grid-template-masonry-value.enabledpreference. It's superseded by grid lanes layout, which uses thegrid-lanesandinline-grid-lanesvalues of thedisplayproperty. (Firefox bug 2077170).
APIs
- Methods that sanitize HTML with the HTML Sanitizer API, such as
Element.setHTML(), now remove unwanted elements and attributes as the markup is parsed, instead of parsing all of the markup first and then cleaning up resulting DOM tree afterwards. The result is the same, except that neighboring text now lands in a single text node instead of being split across several. (Firefox bug 2070498).
DOM
- Scoped custom element registries are now supported, this allows a shadow tree to create an independent
CustomElementRegistrywhose definitions only apply to that specific DOM subtree. This can be used to avoid collisions where multiple web components declare elements with the same name. ThecustomElementRegistryproperty can be used onDocument,Element, andShadowRoot. TheCustomElementRegistry()constructor creates a newCustomElementRegistryobject for scoped usage. (Firefox bug 2070506)
Changes for add-on developers
Experimental web features
These features are shipping in Firefox 159 but are disabled by default.
To experiment with them, search for the appropriate preference on the about:config page and set it to true.
You can find more such features on the Experimental features page.
-
CSS numeric factory functions exposed in workers and worklets:
layout.css.namespace.exposed-in-workers-and-workletsThe numeric factory functions of the
CSSnamespace, such asCSS.px(), are now exposed in workers and paint worklets, not only onWindow. They're part of the CSS Typed Object Model API, so outside Nightly they also need thelayout.css.typed-om.enabledpreference set totrue. (Firefox bug 2079188). -
New
MathMLAnchorElementproperties:mathml.a.element.enabledThe
MathMLAnchorElementinterface now supports thedownload,ping,rel,relList, andreferrerPolicyproperties. (Firefox bug 2064612).