Re: [csswg-drafts] [css-scoping][selectors] `:root` should resolve to `:host` in shadow trees (#11000)

> <bramus> emilio: extra q: does this affect parent selector? (&)
> <bramus> … which is defined to match `:scope`
> <bramus> TabAtkins: yes, i suspect it will

Currently, this does not match in a Shadow DOM targeted style:

```css
:host { 
  &.red { 
    background: red; 
  }
}
```

Based on this change, will this match?

```css
:scope { 
  &.red { 
    background: red; 
  }
}
```

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


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

Received on Thursday, 30 January 2025 00:51:45 UTC