- From: Emilio Cobos Álvarez via GitHub <sysbot+gh@w3.org>
- Date: Sat, 03 Mar 2018 02:07:33 +0000
- To: public-css-archive@w3.org
> This is the "pseudo-elements that point to real elements are new" confusion I just mentioned. The originating element of a pseudo-element is the thing matched by the compound selector to its left. In ::part(), that's just the implicit *, but of course it can be more. All four of the ::part() examples you list are different pseudo-elements, each originating from a different host. They just all happen to point to the same element. That's fair, though in practice no UA will / can implement it that way as far as I can tell. So in practice, at least to the implementations I know (WebKit / Blink / Servo / Gecko), it imposes the requirement of knowing where the selector has been declared / where the rule comes from, so we can know which shadow root does it come from / which shadow host matches it. Other question as I look more through this... Where do these rules fit in the cascade? After normal author rules? How do these interact with `::slotted`, in particular where nested slots and forwarding interact? All those need to be well defined for the spec to be implementable. -- GitHub Notification of comment by emilio Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2368#issuecomment-370107600 using your GitHub account
Received on Saturday, 3 March 2018 02:07:36 UTC