Re: [csswg-drafts] [selectors-4] Disallow pseudo-elements inside :has() (#7463)

Yeah, we left open in the discussion the possibility that we could relax the restriction when needed. If the "when" is "immediately", that's fine. ^_^ So yeah, defining a category of pseudos that can be used here is the way to go - pseudos which, while they may or may not depend on CSS properties for their original creation, do *not* depend on CSS for their *continued* existence, so any styles you set won't affect their lifetime.

Question: should the "always exists" pseudo-elements like ::before/after qualify? I lean toward "no" since they're not useful to detect. 

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


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

Received on Thursday, 7 July 2022 22:00:46 UTC