Re: [csswg-drafts] [css-cascade-6] add a :stylesheet selector to match the current stylesheet (#7349)

It seems to me like all the use-cases for this actually require selecting the parent of the style sheet, which @tabatkins achieves by using the `:has()` selector. I don't know any reason to select the stylesheet itself. Is there a reason we would do this, rather than something like `:stylesheet-parent` or something similar that directly targets the parent?

I suppose this allows you to more generically define _which ancestor_ of the style sheet to select?

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


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

Received on Tuesday, 6 September 2022 20:54:02 UTC