File tree 1 file changed +26
-0
lines changed
spec/values/calculation/round
1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,32 @@ DEPRECATION WARNING [slash-div]: Using / for division outside of calc() is depre
135
135
136
136
Recommendation: math.div(2px, round(1.5)) or calc(2px / round(1.5))
137
137
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
+
138
164
More info and automated migrator: https://sass-lang.com/d/slash-div
139
165
140
166
,
You can’t perform that action at this time.
0 commit comments