Sass currently treats
/as a division operation in some contexts and a separator in others. This makes it difficult for Sass users to tell what any given/will mean, and makes it hard to work with new CSS features that use/as a separator. -Sass-Lang.org
@function strip-units($number) {
@return $number / ($number * 0 + 1);
}The above example will no longer be supported starting in Dart Sass 2.0, resulting in the following error message:
Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0
The easiest way to correct the issue is to place the equation inside a calc() function, like so:
@function strip-units($number) {
@return calc($number / ($number * 0 + 1));
}