Re: [csswg-drafts] [css-contain] CQ vs shadow boundaries (#5984)

> 👍
> 
> But regarding:
> 
> > "For selectors with pseudo elements, query containers can be established in the shadow-including inclusive ancestors of the originating element."
> 
> we need to describe how to look for containers without mentioning the "kind" of selector.
> 
> For e.g. `div::before::marker`, is there a definition which refers to `div` from the perspective of both `::before` and `::marker`? If not, call this "originating element root" or something. Then specify that we look for containers in the shadow-including ancestors starting from the "originating element root".

I don't think it looks like the spec is written with multiple pseudo elements in mind:

https://drafts.csswg.org/selectors-4/#pseudo-element-attachment

As you say, we either need to clarify that `div` is the originating element for `::marker` in `div::before::marker`, or introduce something like "root originating element", yes.


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


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

Received on Monday, 29 November 2021 21:58:06 UTC