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

It just occurred to me that there’s another really nice use case that this addresses: Aliasing long selector chains into nice utility classes.

```css
pre {
 @like .code-labels.count-lines.line-numbers;
}
```

Or extending overly scoped styles:

```css
.warning {
 @like aside.callout.warning;
}
```

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


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

Received on Friday, 21 June 2024 13:48:27 UTC