Eight years passed between CSS Typed OM landing in Chrome 66 (2018) and shipping in stable Firefox 161 on November 24, 2026. Safari caught up in 16.4, while Gecko held out until now. Today, all three engines let JS work with styles as numbers instead of parsing strings. Let's see what's production-ready and where engines still diverge.
CSS Typed OM Reaches Firefox After Eight Years
In the classic DOM, manipulating styles from JS is clunky: you call getComputedStyle, get "250px", run parseFloat, add a number, and glue the string back together. The engine stores dimensions as numbers internally, yet bounces them through a text parser every time.
CSS Typed OM cuts out that conversion. Through attributeStyleMap (inline styles) and computedStyleMap() (computed styles), you receive CSSUnitValue objects with value and unit fields, and create new values with factories like CSS.px().
const box = document.getElementById("my-box");
// Write margin and width as typed objects without string concatenation
box.attributeStyleMap.set("margin-block", CSS.px(24));
box.attributeStyleMap.set("width", CSS.px(250));
// Read CSSUnitValue { value: 250, unit: "px" }
const width = box.attributeStyleMap.get("width");
console.log(width.value, width.unit);
For animations and geometry math, the code is cleaner and skips string parsing. One shared limitation remains: color interfaces CSSColorValue and CSSRGB still don't work anywhere, so colors remain strings.
New CSS Primitives: random(), ident(), and margin-trim
Firefox 161 also ships the CSS random() function with a step and <random-key> — a shared seed so multiple elements can share one random value. Safari shipped random() before those spec edits, so <random-key> lags there. Toggling display: none or hydrating in React can also cause jumps, so keep it for decorative layers.
Nested functions inside var(), attr(), and env() landed too, like var(attr(data-theme-prop type(<custom-ident>))). Meanwhile, the css-values-5 draft is preparing ident(), which concatenates <custom-ident> (names like view-transition-name) and <dashed-ident> (-- names like anchor-name).
.card {
/* Build a transition name directly from a data attribute */
view-transition-name: ident(card-, attr(data-id));
}
That replaces dozens of :nth-child(1..N) rules, though ident() isn't ready for production yet: it exists only in prototypes across Blink, WebKit, and Firefox Nightly.
margin-trim has a similar story. It's a container property that trims outer margins on edge children while keeping margins between siblings, without :first-child and :last-child hacks.
.card {
/* Trim top margin of the first child and bottom margin of the last */
margin-trim: block;
}
.card > p {
margin-block: 1rem;
}
In Firefox 161, margin-trim sits behind layout.css.margin-trim.enabled (on in Nightly), while Safari and Chromium already ship it stably. Cross-browser work focuses only on the block axis (top and bottom); the inline axis (sides) is on hold.
What to Use Now vs What Needs Support Checks
Here is where the release's main features stand across engines.
| Feature | Firefox 161 | Chrome / Edge | Safari | Status |
|---|---|---|---|---|
| CSS Typed OM | Stable | Stable (66+) | Stable (16.4+) | Ready (no colors) |
CSS random() | Stable (seeded) | Stable (seeded) | Partial seed support | Decorative layer |
Nested var()/attr() | Stable | Partial | Limited | Needs testing |
| Compression Dictionary | Stable | Stable | No | Large bundles |
Clipboard "web ..." | Stable | Stable | No | With fallback |
margin-trim (block) | Behind flag | Stable | Stable (16.4+) | No inline axis |
CSS ident() | Nightly | Prototype | WebKit PR | Experimental |
Among platform features, Compression Dictionary Transport (Use-As-Dictionary, Available-Dictionary, dcb/dcz encodings) stands out: the server sends a diff against a cached bundle instead of the whole file. For large scripts like video players, that saves huge bandwidth, whereas frequent deploys of tiny chunks will bog down CI/CD.
Custom clipboard formats prefixed with "web " (same-origin) work in Firefox and Chrome, not Safari — keep a fallback format. Stable Firefox 161 also adds referrerpolicy for SVG (<image>, <script>, <feImage>) to stop leaking GET parameters via Referer, while cross-document View Transitions and blocking="render" wait behind flags.



