Elementary Standards
HTMLCSSWeb StandardsSEOBlogStart reading
Home / Blog / CSS Typed OM Baseline
News

CSS Typed OM Reaches Baseline in Firefox 161

Firefox 161 shipped on November 24, 2026 with the CSS Typed Object Model enabled by default, closing the last gap in cross-engine support and quietly retiring a decade of string-parsing workarounds.

Firefox 161 went to Stable on November 24, 2026, and buried among the release notes is a change that matters more than its one-line summary suggests: the CSS Typed Object Model API is now supported by default, letting scripts read and write CSS values as typed JavaScript objects through Element.computedStyleMap() and HTMLElement.attributeStyleMap instead of as plain strings. Chrome has shipped CSS Typed OM since version 66 in 2018, and Safari added it in 16.4. With Firefox finally on board, the feature is now Baseline across every major engine.

That milestone is the kind of cross-browser consistency teams doing production web development actually plan around: once a platform feature is Baseline, you can build on it directly instead of writing a fallback path for the one engine that hasn't caught up yet.

Before: CSSStyleDeclarationel.style.width"240px" (string)After: CSS Typed OMel.computedStyleMap(){value:240, unit:"px"}Chrome 66 (2018)Safari 16.4Firefox 161 (Nov 24, 2026)Baseline reached

What actually shipped in Firefox 161

Per Mozilla's own Firefox 161 release notes, the CSS Typed OM API "lets scripts read and write CSS values as typed JavaScript objects instead of strings," with the notes explicitly pointing to Element.computedStyleMap() and HTMLElement.attributeStyleMap as the entry points. The one caveat Mozilla calls out: color value interfaces such as CSSColorValue and CSSRGB are not supported in Firefox, or in any other browser yet, so color still has to be handled as a string a little longer.

Everything else in the spec is fair game. A numeric length like width: 240px now comes back from computedStyleMap() as a CSSUnitValue object with a .value of 240 and a .unit of "px", instead of the string "240px" that every engine returned before. The same model covers keywords, transform lists, and the numeric factory functions such as CSS.px() and CSS.em() that let code construct typed values directly rather than building strings and hoping the parser agrees with the arithmetic.

What this means for developers

When does this ship / timeline

Firefox 161 is Stable as of November 24, 2026, so CSS Typed OM support is already live for anyone on a current release. There is no further rollout to wait for on the Firefox side. The remaining gap is color: the CSS Color interfaces of Typed OM haven't landed in Chrome, Safari, or Firefox, and no browser has published a ship date for them, so treat CSSColorValue as not-yet-Baseline and keep using string-based color APIs until that changes.

Back to the blog
More notes

Keep reading