Skip to content

Commit

Permalink
Add a regression test for sass/dart-sass#2523
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Feb 25, 2025
1 parent 73acfbf commit bc6aa8a
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions spec/values/calculation/round/one_argument.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,32 @@ DEPRECATION WARNING [slash-div]: Using / for division outside of calc() is depre

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

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

,
2 | a: 2px / round(1.5);
| ^^^^^^^^^^^^^^^^
'
input.scss 2:6 root stylesheet

<===>
================================================================================
<===> calc_unsafe_in_binary_operator/input.scss
// Regression test for sass/dart-sass#2523
b {
a: round(-(1) + 2);
}

<===> calc_unsafe_in_binary_operator/output.css
b {
a: 1;
}

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

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

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

,
Expand Down

0 comments on commit bc6aa8a

Please sign in to comment.