Re: [csswg-drafts] [css-pseudo-4] Add a note explaining Element.pseudo() behaviour #12159 (#12406)

The algorithm will be unchanged, won't it? It still returns a `CSSPseudoElement` object if the selector is valid. 
I started the issue and planned this note as just an additional info to clarify the case like e.g. `<input>.pseudo(::before)` returns `CSSPseudoElement` even though `<input>` can't generate `::before:`.
My point is that per current algorithm description says: the selector `::before` is valid, so it returns `CSSPseudoElement`. I don't see what changes we should add with that resolution, could you, please, explain?

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


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

Received on Sunday, 29 June 2025 17:28:46 UTC