-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
- Proposal (Add a proposal to make room for plain-CSS functions and mixins #3812)
- Update official spec ([CSS Function/Mixin Prep] Mark as accepted and update spec #3854)
- Deprecation
- CSS Compatibility (
@function) - CSS Compatibility (
@mixin)
@mirisuzanne is working on a proposal for CSS custom functions and mixins at https://css.oddbird.net/sasslike/mixins-functions/
The suggested syntax uses @function and @mixin, which are the same at-rules than Sass, and so would clash with it right now.
The CSS proposal requires CSS custom functions and mixins to use dashed-ident, i.e. an identifier starting with --, to avoid clashes with built-in CSS functions (which never start with --).
However, Sass currently allows defining function and mixin names starting with --, as shown in https://sass-lang.com/playground/#eJwzNHRIK81LLsnMz1PQ1S1JLS5R0NBUqOZSUHAoSi0pLcpTUE9Wt+aq5eJyyM2syIQpMoKpSrFSSAVLJ4K5SVZQBRqa1iAzMvOSc0pTUmG6gCoBJ/UfhA==
Should we deprecate defining Sass members named using dashed-ident to reduce the risk of clashes with CSS ?