- From: Miriam Suzanne via GitHub <noreply@w3.org>
- Date: Mon, 30 Jun 2025 16:53:31 +0000
- To: public-css-archive@w3.org
I opened https://github.com/w3c/csswg-drafts/issues/12418 for @LeaVerou's question about relative selectors at the root level. Though I think there's another part to the question here: - We can put bare declarations inside `@scope` - I don't think we'd want to allow bare declarations at the root of any CSS? - Do bare declarations at the root become meaningful when imported into a scope? - If not, we can't fully mimic "the same behavior as `@scope` I didn't (yet) open an issue for the second question, because I'm not sure it's orthogonal. If `:root` resolves to `:scope` inside an `@scope` rule, I believe those two selectors become basically interchangeable in CSS – since, as you say, `:scope` resolves to `:root` outside `@scope`. That would make `:root` much less useful as an escape-hatch, and `:scope` entirely unnecessary. I can't really see any reason we would consider that _except_ to work around this specific issue. -- GitHub Notification of comment by mirisuzanne Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11756#issuecomment-3019986319 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 30 June 2025 16:53:31 UTC