Skip to content

Commit a38b555

Browse files
committed
Fix test for sass/dart-sass#2615
1 parent a4810b4 commit a38b555

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

spec/values/numbers/units/multiple/division_cancels_compatible.hrx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
<===> input.scss
22
@use "sass:meta";
3-
$number: 1px * 1rad / 1ms / 1Hz;
3+
$number: 96px * 1rad / 1ms / 1Hz;
44
a {
55
b: meta.inspect($number / 1in);
66
}
77

88
<===> output.css
99
a {
10-
b: calc(0.0104166667rad / 1ms / 1Hz);
10+
b: calc(1rad / 1ms / 1Hz);
1111
}
1212

1313
<===> warning
1414
DEPRECATION WARNING [slash-div]: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
1515

16-
Recommendation: math.div(1px * 1rad, 1ms) or calc(1px * 1rad / 1ms)
16+
Recommendation: math.div(96px * 1rad, 1ms) or calc(96px * 1rad / 1ms)
1717

1818
More info and automated migrator: https://sass-lang.com/d/slash-div
1919

2020
,
21-
2 | $number: 1px * 1rad / 1ms / 1Hz;
22-
| ^^^^^^^^^^^^^^^^
21+
2 | $number: 96px * 1rad / 1ms / 1Hz;
22+
| ^^^^^^^^^^^^^^^^^
2323
'
2424
input.scss 2:10 root stylesheet
2525

2626
DEPRECATION WARNING [slash-div]: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
2727

28-
Recommendation: math.div(math.div(1px * 1rad, 1ms), 1Hz) or calc(1px * 1rad / 1ms / 1Hz)
28+
Recommendation: math.div(math.div(96px * 1rad, 1ms), 1Hz) or calc(96px * 1rad / 1ms / 1Hz)
2929

3030
More info and automated migrator: https://sass-lang.com/d/slash-div
3131

3232
,
33-
2 | $number: 1px * 1rad / 1ms / 1Hz;
34-
| ^^^^^^^^^^^^^^^^^^^^^^
33+
2 | $number: 96px * 1rad / 1ms / 1Hz;
34+
| ^^^^^^^^^^^^^^^^^^^^^^^
3535
'
3636
input.scss 2:10 root stylesheet
3737

0 commit comments

Comments
 (0)