Re: [csswg-drafts] Proposal: Custom CSS Functions & Mixins (#9350)

Is there any chance to get a syntax for mixins that achieves the following:

1. Creates a mixin with certain styles
2. Applies the same styles to one or multiple selectors
3. Does not duplicate the styles
4. **does not fail for the selector when mixins aren't supported**

This would be very convenient for future-proofing CSS, for example to style `<button>`s while defining a `--button` mixin at the same time, but without breaking the styling for buttons on browsers that do not support mixins.

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


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

Received on Tuesday, 4 November 2025 09:54:50 UTC