Re: [csswg-drafts] [css-mixins-1] Are @mixin rules valid within other at-rules? (#12417)

> But I think mixin rules should also be valid in `@layer` rules to be able to use cascade layers to resolve name conflicts.

Ah, yeah, you're right. Damn. I was hoping we could just _cleanly_ state "doesn't work (at all) within such and such", but I guess we do need to be more subtle about it---at least for `@layer`.

> However the inner styles should not be affected by this I think.

Hopefully it will still be _somewhat_ explainable to authors that layers affect which mixin definitions "wins", but not the definitions themselves.

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


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

Received on Monday, 30 June 2025 13:52:37 UTC