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

> [@ZoeBijl](https://github.com/ZoeBijl) This doesn't currently propose a way to group selectors with at-rules, no. This would be…
> 
> @mixin --visually-hidden {
>     position: absolute;
>     width: 1px;
>     height: 1px;
>     overflow: hidden;
>     clip: rect(0 0 0 0);
>     clip-path: inset(50%);
>     white-space: nowrap;
> }
> 
> .visually-hidden:not(:focus):not(:active) {
>   @apply --visually-hidden;
> }

Ah of course, that makes a lot more sense, thank you!

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


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

Received on Tuesday, 14 October 2025 21:15:54 UTC