That's a fair question. The typical use case for this is to disambiguate the pseudo. It is possible that we additionally would add arguments list for CSSPseudoElement, and selectorText would be the combined thing which I think is still independently useful
On Thursday, November 19, 2026 at 3:36:29 PM UTC-5 Jeffrey Yasskin wrote: > A question you might get if you filed a TAG review for this in particular: > is it the right design to expose "::view-transition-group(foo)", which the > caller might need to parse, or should this instead be exposing the > structure of the selector? > > On Thu, Nov 19, 2026 at 11:36 AM Chromestatus < > [email protected]> wrote: > >> *Contact emails* >> [email protected] >> >> *Explainer* >> https://github.com/vmpstr/htmldemos/blob/master/csspseudo/README.md >> >> *Specification* >> https://drafts.csswg.org/css-pseudo-4/#dom-csspseudoelement-selectortext >> >> *Summary* >> CSSPseudoElement is a javascript api that allows some limited >> interactions with pseudo elements from script. This feature adds a minor >> improvement, namely selectorText property, that returns the string that >> could be used to select this pseudo element from CSS. >> >> *Blink component* >> Blink>CSS >> <https://issues.chromium.org/issues?q=customfield1222907:%22Blink%3ECSS%22> >> >> *Web Feature ID* >> CSSPseudoElement <https://webstatus.dev/features/CSSPseudoElement> >> >> *Motivation* >> In order to disambiguate pseudo elements (in cases like view transition) >> it's important that we include more than the base type of the pseudo >> element, but include the arguments which would be a part of the selector >> text (e.g. type is ::view-transition-group, but selectorText is >> ::view-transition-group(foo)) >> >> *Initial public proposal* >> https://github.com/w3c/csswg-drafts/issues/12161#issuecomment-3531224633 >> >> *TAG review* >> This is a small addition to CSSPseudoElement interface, which was >> reviewed via https://github.com/w3ctag/design-reviews/issues/1233 >> >> *TAG review status* >> Not applicable >> >> *Goals for experimentation* >> None >> >> *Risks* >> >> >> *Interoperability and Compatibility* >> N/A. This is a small addition to an existing interface >> >> *Gecko*: No signal ( >> https://github.com/mozilla/standards-positions/issues/1489) >> >> *WebKit*: No signal ( >> https://github.com/WebKit/standards-positions/issues/744) >> >> *Web developers*: No signals >> >> *Other signals*: >> >> *WebView application risks* >> >> Does this intent deprecate or change behavior of existing APIs, such that >> it has potentially high risk for Android WebView-based applications? >> *No information provided* >> >> >> *Debuggability* >> This is debuggable as any javascript objects >> >> *Will this feature be supported on all six Blink platforms (Windows, Mac, >> Linux, ChromeOS, Android, and Android WebView)?* >> Yes >> >> *Is this feature fully tested by web-platform-tests >> <https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md>?* >> Yes >> https://wpt.fyi/results/css/css-pseudo/CSSPseudoElement-selectorText.html >> >> *Flag name on about://flags* >> *No information provided* >> >> *Finch feature name* >> CSSPseudoElementSelectorText >> >> *Rollout plan* >> Will ship enabled for all users >> >> *Requires code in //chrome?* >> False >> >> *Tracking bug* >> https://issues.chromium.org/567978984 >> >> *Estimated milestones* >> Shipping on desktop 160 >> Shipping on Android 160 >> Shipping on WebView 160 >> >> *Anticipated spec changes* >> >> Open questions about a feature may be a source of future web compat or >> interop issues. Please list open issues (e.g. links to known github issues >> in the project for the feature specification) whose resolution may >> introduce web compat/interop risk (e.g., changing to naming or structure of >> the API in a non-backward-compatible way). >> https://github.com/w3c/csswg-drafts/pull/14730 >> >> *Link to entry on the Chrome Platform Status* >> https://chromestatus.com/feature/5071155760332800?gate=6118463369248768 >> >> *Links to previous Intent discussions* >> Intent to Prototype: >> https://groups.google.com/a/chromium.org/d/msgid/blink-dev/6abd6c0e.b816ca50.7065.0542.GAE%40google.com >> >> >> This intent message was generated by Chrome Platform Status >> <https://chromestatus.com>. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "blink-dev" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion visit >> https://groups.google.com/a/chromium.org/d/msgid/blink-dev/6aff4f90.5413fcea.895c7.02ac.GAE%40google.com >> >> <https://groups.google.com/a/chromium.org/d/msgid/blink-dev/6aff4f90.5413fcea.895c7.02ac.GAE%40google.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "blink-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/15eaf452-ed96-4211-9c6f-d9b01f7dc78en%40chromium.org.
