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

Re https://github.com/oddbird/css-sandbox/blob/main/src/scope/explainer.md#can-scoped-selectors-reference-external-context

If "scoped selectors should be otherwise unaware of the scope" wouldn't that mean that both divs in the example below are blue?
```html
<div class=x>
  <div class=component>
    <div class=x>
      <div class=x>x</div>
      <div class=y>y</div>
    </div>
  </div>
</div>
<style>
@scope (.component) {
  .x .x { color: blue; }
}
</style>
```

My preference would be for an explicit `.my-host-page :scope .my-component-part` (if for no other reason than to make it clear what's intended!) with just disallowing it entirely a distant second.


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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 9 January 2021 21:50:05 UTC