Re: [csswg-drafts] [css-mixins-1] Need a non-hacky way to force an element-dependent value on the applying element (#13454)

FWIW, since nobody else has mentioned what _I_ think is the most obvious solution: Drop hygienic rewrites altogether. :-) They require increasingly complicated layers of rewrites, they limit mixins to being scoped (I can imagine sibling selectors in particular being interesting to support), and there's no obvious way to have non-hygienic arguments should you want them. On the flip side, an author that actually _wants_ hygienic variables can easily make them on their own without any help from the UA (just set a custom property). I think we need to balance how common these problems actually are against the amount of pain we're adding to the standard.

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


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

Received on Wednesday, 18 February 2026 12:18:12 UTC