- From: Nathan Knowler via GitHub <sysbot+gh@w3.org>
- Date: Tue, 20 Feb 2024 04:15:59 +0000
- To: public-css-archive@w3.org
knowler has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-scoping-1][css-shadow-parts-1] Can the non-functional `:host` be compound? And should `::part()` select within its own shadow root? == Currently in all browsers, within a shadow root, a selector such as `:host::part(something)` _will_ select parts within that same shadow root. I’m curious if this is intentional as I cannot tell from the spec that the non-functional `:host` pseudo-class can be a compound selector like this. Admittedly, _this is a nicer API_ than using an attribute selector, so I am happy if that’s the case. Further, in Firefox, a selector like `::part(something)` on its own within a shadow root can select parts within the same shadow root. This seems maybe a bit problematic since then it could select parts within two shadow roots at the same time (e.g. a nested shadow root as well). [Demo for each case mentioned](https://knowler.dev/demos/2r9dkgZ) Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9981 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 20 February 2024 04:16:01 UTC