Skip to content

Commit 343898b

Browse files
authored
Merge pull request #2563 from mgreter/bugfix/issue-2560
Fix css test for interpolated numbers
2 parents 813b8ea + fd7e64e commit 343898b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/eval.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,9 @@ namespace Sass {
11561156
ex = ll;
11571157
}
11581158
if (Number_Ptr nr = Cast<Number>(ex)) {
1159-
if (!nr->is_valid_css_unit()) {
1159+
Number reduced(nr);
1160+
reduced.reduce();
1161+
if (!reduced.is_valid_css_unit()) {
11601162
throw Exception::InvalidValue(*nr);
11611163
}
11621164
}

0 commit comments

Comments
 (0)