Re: [csswg-drafts] [css-mixin-1] How does Shadow DOM influence mixin lookup? (#12671)

Shadow DOM introduces scoping but shouldn't influence ordering. The scoping of mixing should hopefully be able to follow the rules defined for naming across scopes: https://drafts.csswg.org/css-scoping-1/#shadow-names

Therefore the case [here](https://github.com/w3c/csswg-drafts/issues/12671#issuecomment-3233455422) should do the same as this:

```html
<style>
  @mixin --m() {
    --x: 1;
  }
</style>
<style>
  #inner {
    @apply --m(); /* --x? */
  }
</style>
<div id=inner></div>
<style>
  @mixin --m() {
    --x: 2;
  }
</style>
```

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


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

Received on Thursday, 23 October 2025 13:26:41 UTC