Forbid multiple !global and/or !default flags
Author: nex3Created Feb 21, 2019Updated Jan 6, 2026
Labelsenhancementrequires deprecationproposal acceptedblocked
- Deprecation
- Removal
- Deprecation metadata (https://github.com/sass/sass/pull/4129)
- Tests (https://github.com/sass/sass-spec/pull/2078)
- Dart Sass (https://github.com/sass/dart-sass/pull/2636)
- Website
Currently, variable assignments can have any number of !default or !global flags. Multiple instances of the same flag don't do anything, though. They should be rejected by implementations.
Since this is technically a breaking change, it will need a deprecation period. The spec already requires at most one of each flag, so it won't need to be updated.
Source: sass/sass