- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 29 Jan 2025 20:01:40 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed ``[css-scoping][selectors] `:root` should resolve to `:host` in shadow trees``, and agreed to the following: * ``RESOLVED: Have have `:scope` resolve to `:host` rather than `:root` in shadow tree`` <details><summary>The full IRC log of that discussion</summary> <emilio> q+<br> <bramus> TabAtkins: lea mentioen that you the `:scope` resolves to `:root`. within shadow roots tha tis not useful, shoudl resolve to `:host`<br> <emilio> ack TabAtkins<br> <bramus> … because `:root` never matches<br> <astearns> ack TabAtkins<br> <bramus> … that way you can use same styles inside and outside shadow tree<br> <astearns> ack emilio<br> <bramus> emilio: compat concerns<br> <bramus> … there is usefulness to have `:root` and `:host` be different<br> <dbaron> I'm unsure whether we want the possibly-implied change to the way highlight pseudos work.<br> <bramus> … e.g. in the firefox fronted we use SD a lot<br> <bramus> … and the stylesheets end up being global styles too<br> <bramus> … dont want those to be overridden on very shadow root<br> <bramus> TabAtkins: would not overrid ehwen defined on `:root`<br> <bramus> … was wrong: proposal is to have `:scope` resolve to `:host` elem in shadow tree, rather than root.<br> <bramus> emilio: makes more sense<br> <miriam> +1<br> <bramus> PROPOSED RESOLUTION: Have have `:scope` resolve to `:host` rather than `:root` in shadow tree<br> <bramus> RESOLVED: Have have `:scope` resolve to `:host` rather than `:root` in shadow tree<br> <bramus> TabAtkins: (missed)<br> <dbaron> TabAtkins: there was a second issue raised about changing :root but as emilio points out that might cause problems<br> <bramus> emilio: extra q: does this affect parent selector? (&)<br> <bramus> … which is defined to match `:scope`<br> <bramus> TabAtkins: yes, i suspect it will<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11000#issuecomment-2622719814 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 29 January 2025 20:01:40 UTC