- From: Sebastian Zartner via GitHub <noreply@w3.org>
- Date: Wed, 05 Nov 2025 07:49:37 +0000
- To: public-css-archive@w3.org
> > and that might change if you see another rule defining the same name later
>
> What does this mean? For example:
>
> @mixin --a() {}
>
> .a {
> color: blue;
> @apply --a();
> }
>
> @mixin --a() {
> color: green;
> }
>
> What `color` is `.a`?
From @tabatkins' [last comment trying to explain the details of the resolution](https://github.com/w3c/csswg-drafts/issues/12536#issuecomment-3225776469), I assume that's what @emilio [suggested earlier](https://github.com/w3c/csswg-drafts/issues/12536#issuecomment-3132011705).
So, from my interpretation, `color` would be blue. And in the following case
```css
@mixin --a() {}
.a {
color: blue;
@apply --a();
}
@mixin --a() {
color: green;
}
.a {
color: red;
@apply --a();
}
```
`color` in the second `.a` would be green.
@tabatkins @emilio Please correct me if I am wrong!
Sebastian
--
GitHub Notification of comment by SebastianZ
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12536#issuecomment-3489791970 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 5 November 2025 07:49:38 UTC