W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2021

Re: [csswg-drafts] [css-scoping] Proposal for light-dom scoping/namespacing with re-designed `@scope` rule (#5809)

From: DarkWiiPlayer via GitHub <sysbot+gh@w3.org>
Date: Mon, 02 Aug 2021 12:25:41 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-890984054-1627907139-sysbot+gh@w3.org>

> If "scoped selectors should be otherwise unaware of the scope" wouldn't that mean that both divs in the example below are blue?

Personally, that's what I find intuitive in this case: the middle `.x` is a) inside the scope and b) inside an `.x`, so the rule *should* apply to it.

If you want only the inner `.x` to be matched by the rule, something like `:scope .x .x { ... }` makes more sense to me.

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

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 2 August 2021 12:25:42 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:42 UTC