Elementary Standards
HTMLCSSWeb StandardsSEOBlogStart reading
Home / Blog / Chrome 160 Adds selectorText to CSSPseudoElement
Browsers

Chrome 160 Adds selectorText to CSSPseudoElement

A small JavaScript API addition finally lets script tell ::view-transition-group(foo) apart from a plain ::view-transition-group — and it says something about how parametric pseudo-elements are multiplying.

On December 2, 2026, the Intent to Ship for CSSPseudoElement.selectorText picked up its second LGTM on the blink-dev mailing list, clearing the feature to ship on desktop, Android, and WebView in Chrome 160. The addition is small in surface area, one read-only string property, but it closes a real gap: until now, script had no reliable way to tell a parametrized pseudo-element like ::view-transition-group(foo) apart from the bare ::view-transition-group it's built on.

That gap matters more as parametric pseudo-elements spread beyond the View Transitions API they were introduced for. Any team shipping a production app with more than a handful of simultaneously named transition groups, highlights, or scroll markers has already felt the pain of debugging which instance a given CSSPseudoElement object actually refers to. Teams coordinating that kind of growing pseudo-element inventory across a shared codebase lean hard on whatever keeps changes reviewable property-by-property rather than file-by-file — which is exactly the gap the best developer collaboration tools 2026 roundup is built to help teams close before a merge quietly breaks someone else's transition.

The feature itself traces back to an Intent to Prototype filed earlier this year, and the spec text already lives in the CSS Pseudo-Elements Level 4 draft, so this is a standards-track addition, not a Chrome-only extra.

.type::view-transition-group.selectorText::view-transition-group(foo)

Why script couldn't disambiguate this before

CSSPseudoElement already exposed a type property, but type only ever returns the base pseudo-element name, e.g. ::view-transition-group, never the argument that makes one group different from another. As the explainer behind the feature puts it, the goal is to "disambiguate pseudo elements (in cases like view transition)" by including "more than the base type of the pseudo element," specifically the parenthesized argument that is actually part of the selector text. Without it, a script holding a CSSPseudoElement reference during a transition had to fall back on fragile heuristics, inferring which named group it was looking at from DOM position or timing, rather than just asking.

What ships in Chrome 160

What this means for developers

If you're animating multiple named view transition groups, highlights, or other parametric pseudo-elements and inspecting them from script (via APIs like document.getAnimations() or pseudo-element-aware event handling), selectorText replaces guesswork with a direct read. Practically, that means:

None of this requires a markup or CSS change on your end. It's a pure JavaScript API addition: existing ::view-transition-group() usage in your stylesheets is untouched, and nothing breaks if you never read selectorText at all.

When does this ship?

The feature cleared both required LGTMs on blink-dev on December 2, 2026, with one reviewer's approval conditioned on the explainer getting more context and moving its IDL into an appendix, routine housekeeping rather than a design objection. Chrome 160 reaches beta on December 2, 2026, with a stable release expected in January 2027, per Chrome Platform Status. Track the feature directly through the public explainer or the CSS Pseudo-Elements Level 4 draft if you want to wire up feature detection ('selectorText' in CSSPseudoElement.prototype) ahead of the stable rollout rather than waiting on it.

Back to the blog
More notes

Keep reading