Skip to content

Commit fd7e64e

Browse files
committed
Fix css test for interpolated numbers
1 parent 813b8ea commit fd7e64e

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)