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

Sorry, I'm missing a lot of context, but it seems like `@function` is working the way I described ([example](https://codepen.io/Steve-Orvell/pen/MYKXwjg?editors=1000))? Is the processing model different for ` @mixin/@apply`?

```html
<style> @function --m() { result: 'first'; } </style>

<div><template shadowrootmode=open>
  <style> #inner::after { content: 'shadow:' --m(); } </style>
  <div id=inner></div>
</template></div>

<style> #inner::after { content: 'document:' --m(); } </style>
<div id=inner></div>

<style> @function --m() { result: 'second'; } </style>
```

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


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

Received on Saturday, 25 October 2025 17:53:45 UTC