Re: [csswg-drafts] Add a property to retrieve plural instances of pseudo elements with the same selector (#12162)

I was thinking about handling newly added e.g. ::columns. There is no straightforward way to determine this, so what if we returned not a dumb list, but rather a persistent-identity CSSPseudoElementArray, which would eliminate the need for synchronous style/layout (so act like a proxy the way CSSPseudoElement does). And then you could do addEL() on that CSSPseudoElementArray which would be equal to having addEL() on all existing and future CSSPseudoElement items of that list?
And if you need individual items for whatever reason you can have CSSPseudoElementArray.items?

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


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

Received on Thursday, 18 September 2025 16:28:07 UTC