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

It seem the main advantage of this approach is having access styles from existing elements (like `button`). But once we start adapting it to handle more generic 'mixin' cases (with placeholder selectors) – we're back to requiring a handshake on terms.

What if we come at this from the other side? One of the things that got me most excited about the mixin proposal was @astearns suggestion that there could be some core mixins provided (like one to access keyframe styles). A similar solution might work here: a core mixin (`@mixin like(button:hover) { … }`) that can be used to access styles from another selector?

-- 
GitHub Notification of comment by mirisuzanne
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10222#issuecomment-2207395477 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:13:15 UTC