<===> options.yml
---
:warning_todo:
- sass/libsass#2887
<===> input.scss
@function foo() {
@return 1+2 3/4 5+6;
}
@mixin bar($x: 3/4) {
bar-content: $x;
}
div {
content: foobar(1+2 3/4 5+6, orange);
content: append(1+2 2/3 5+6, orange);
content: 1+2 2/3 5+6;
content: type-of(2/3);
content: type-of(orange);
content: foo();
@include bar();
}
<===> output.css
div {
content: foobar(3 3/4 11, orange);
content: 3 2/3 11 orange;
content: 3 2/3 11;
content: number;
content: color;
content: 3 3/4 11;
bar-content: 0.75;
}
<===> warning
DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div(2, 3)
More info and automated migrator: https://sass-lang.com/d/slash-div
,
13 | content: type-of(2/3);
| ^^^
'
input.scss 13:20 root stylesheet
DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div(3, 4)
More info and automated migrator: https://sass-lang.com/d/slash-div
,
5 | @mixin bar($x: 3/4) {
| ^^^
'
input.scss 5:16 bar()
input.scss 16:3 root stylesheet