Skip to content

Commit bc6aa8a

Browse files
committed
Add a regression test for sass/dart-sass#2523
1 parent 73acfbf commit bc6aa8a

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

spec/values/calculation/round/one_argument.hrx

+26
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,32 @@ DEPRECATION WARNING [slash-div]: Using / for division outside of calc() is depre
135135

136136
Recommendation: math.div(2px, round(1.5)) or calc(2px / round(1.5))
137137

138+
More info and automated migrator: https://sass-lang.com/d/slash-div
139+
140+
,
141+
2 | a: 2px / round(1.5);
142+
| ^^^^^^^^^^^^^^^^
143+
'
144+
input.scss 2:6 root stylesheet
145+
146+
<===>
147+
================================================================================
148+
<===> calc_unsafe_in_binary_operator/input.scss
149+
// Regression test for sass/dart-sass#2523
150+
b {
151+
a: round(-(1) + 2);
152+
}
153+
154+
<===> calc_unsafe_in_binary_operator/output.css
155+
b {
156+
a: 1;
157+
}
158+
159+
<===> math/slash_as_division/warning
160+
DEPRECATION WARNING [slash-div]: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
161+
162+
Recommendation: math.div(2px, round(1.5)) or calc(2px / round(1.5))
163+
138164
More info and automated migrator: https://sass-lang.com/d/slash-div
139165

140166
,

0 commit comments

Comments
 (0)