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

Correct, the double-dash prefix is common and will continue to be used, as it's a good marker for author-defined stuff. And it keeps the syntax space open for us to do other interesting things, like [the suggestion to use `@apply` to handle the "style me like a built-in element" use-case](https://github.com/w3c/csswg-drafts/issues/10222#issuecomment-2207395477), which would be impossible if the mixin names were just arbitrary custom idents.

(I do wish we'd been able to just use a single-dash prefix, but we invented this originally for custom properties, where single-dash was already used for vendor prefixes. And we want to be consistent everywhere.)

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


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

Received on Wednesday, 16 July 2025 16:32:49 UTC