Deprecations
Hierarchy
- Deprecations
Index
Properties
Properties
abs-percent
Deprecation for passing percentages to the Sass abs() function.
This deprecation became active in Dart Sass 1.65.0.
adjacent-compounds
Deprecation for adjacent compound selectors like [class]a.
This deprecation became active in Dart Sass 1.100.0.
bogus-combinators
Deprecation for leading, trailing, and repeated combinators.
This deprecation became active in Dart Sass 1.54.0.
call-string
Deprecation for passing a string directly to meta.call().
This deprecation was active in the first version of Dart Sass.
color-4-api
Deprecation for certain uses of built-in sass:color functions.
This deprecation became active in Dart Sass 1.79.0.
color-functions
Deprecation for using global color functions instead of sass:color.
This deprecation became active in Dart Sass 1.79.0.
color-module-compat
Deprecation for using color module functions in place of plain CSS functions.
This deprecation became active in Dart Sass 1.23.0.
compile-string-relative-url
Deprecation for passing a relative url to compileString().
This deprecation became active in Dart Sass 1.88.0.
css-function-mixin
Deprecation for function and mixin names beginning with –.
This deprecation became active in Dart Sass 1.76.0. It became obsolete in Dart Sass 1.94.0.
duplicate-var-flags
Deprecation for using !default or !global multiple times for one variable.
This deprecation became active in Dart Sass 1.62.0.
elseif
Deprecation for @elseif.
This deprecation became active in Dart Sass 1.3.2.
feature-exists
Deprecation for meta.feature-exists
This deprecation became active in Dart Sass 1.78.0.
fs-importer-cwd
Deprecation for using the current working directory as an implicit load path.
This deprecation became active in Dart Sass 1.73.0.
function-name
Deprecation for uppercase reserved function names.
This deprecation became active in Dart Sass 1.98.0.
function-units
Deprecation for passing invalid units to built-in functions.
This deprecation became active in Dart Sass 1.56.0.
global-builtin
Deprecation for global built-in functions that are available in sass: modules.
This deprecation became active in Dart Sass 1.80.0.
if-function
Deprecation for the Sass if($condition, $if-true, $if-false) function.
This deprecation became active in Dart Sass 1.95.0.
import
Deprecation for
Import
rules.
This deprecation became active in Dart Sass 1.80.0.
legacy-js-api
Deprecation for legacy JS API.
This deprecation became active in Dart Sass 1.79.0.
misplaced-rest
Deprecation for a rest parameter before a positional or named parameter.
This deprecation became active in Dart Sass 1.91.0.
mixed-decls
Deprecation for declarations after or between nested rules.
This deprecation became active in Dart Sass 1.77.7. It became obsolete in Dart Sass 1.92.0.
moz-document
Deprecation for @-moz-document.
This deprecation became active in Dart Sass 1.7.2.
new-global
Deprecation for declaring new variables with !global.
This deprecation became active in Dart Sass 1.17.2.
null-alpha
Deprecation for passing null as alpha in the JS API.
This deprecation became active in Dart Sass 1.62.3.
relative-canonical
Deprecation for imports using relative canonical URLs.
This deprecation became active in Dart Sass 1.14.2.
slash-div
Deprecation for / operator for division.
This deprecation became active in Dart Sass 1.33.0.
strict-unary
Deprecation for ambiguous + and - operators.
This deprecation became active in Dart Sass 1.55.0.
type-function
Deprecation for functions named "type".
This deprecation became active in Dart Sass 1.86.0. It became obsolete in Dart Sass 1.92.0.
user-authored
Used for any user-emitted deprecation warnings.
with-private
Deprecation for configuring private variables in @use, @forward, or load-css().
This deprecation became active in Dart Sass 1.92.0.
© 2006–2025 the Sass team, and numerous contributors
Licensed under the MIT License.
https://sass-lang.com/documentation/js-api/interfaces/Deprecations
All of the deprecation types currently used by Sass.
Any of these IDs or the deprecation objects they point to can be passed to
fatalDeprecations,futureDeprecations, orsilenceDeprecations.