Re: [csswg-drafts] [css-mixins] Proposal: `@like` rule for repurposing page default styles (#10222)

Oh I love the idea of a built-in `like` mixin.

Coincidentally, I recently had a use case exactly for applying `button:hover`-like styles on another selector, and I ended up implementing it using cyclic space toggles, which led to some hard-to-understand code. I'd love to be able to do `@apply like(button:hover)` instead, for simplicity.

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


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

Received on Wednesday, 3 July 2024 22:54:17 UTC