Re: [csswg-drafts] [css-pseudo] Add a property to the `CSSPseudoElement` IDL interface to retrieve pseudo argument(s) (#12161)

It seems like we need to come up with the names for each of the properties discussed, I suggest:
- leaving `.type` only for the type of pseudo-element (`"::after"`, `"::scroll-button"`);
- new `.arguments`/`.parameters` to retrieve the list of params (`sequence<CSSOMString>["left"]` for `::scroll-button(left)` or `null` for `::after`). Plural form to make it future-proof;
- new `.selectorText`/`.identifier` for the full, normalized string used to select the pseudo-element (`"::after"` and `"::scroll-button(left)"`). This should round-trip (but would that require serializing e.g. scroll-button's direction as logical?).

-- 
GitHub Notification of comment by danielsakhapov
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12161#issuecomment-3503876509 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 7 November 2025 17:41:28 UTC