Re: [csswg-drafts] [css-pseudo] Should non-tree-abiding pseudo elements have a separate IDL interface? (#12160)

I suggest discussing some form of inheritance tree at TPAC.
Maybe even having an individual interface for each specific pseudo-element, that can't be easily generalized.
We can add a bunch of mixins, e.g. `CSSTreeAbidingProperties` (`.parent`, maybe `.children`) and `CSSRangeBasedProperties` (say, for `::selection`) and make each invidiual pseudo-element interface include them if they support them. In this way we leave `CSSPseudoElement` as a general base class and have a precise control on what each individual pseudo-element can and can't do.

-- 
GitHub Notification of comment by danielsakhapov
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12160#issuecomment-3504115048 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 18:24:24 UTC