accepted/css-function-mixin-preparation.md
(Issue)
This proposal adds errors for existing Sass syntax which is likely to conflict with upcoming plain CSS support for functions and mixins.
This section is non-normative.
In this informal proposal and this issue, the CSS working group have begun seriously discussing the possibility of introducing functions and mixins to CSS itself. Although many specific details are still in flux, all syntaxes that have been floated have two things in common:
@mixin and @function, just as Sass does today.-- after these at-rules.Sass currently allows functions and mixins whose names begin with --, but this
is a relatively painless thing to deprecate and would allow us full CSS
compatibility with whatever version of the proposal ends up getting implemented.
This section is non-normative.
This proposal makes any mixin or function whose name begins with -- an error.
This will be preceded by a deprecation period in which those mixins and
functions will just produce warnings.
@mixinUpdate the @mixin semantics to add after the first line:
name begins with --, throw an error.@functionUpdate the @function semantics to add after the first line:
name begins with --, throw an error.During the deprecation period, instead of throwing errors as described in the
semantics section above, emit a deprecation warning named css-function-mixin.