Properly stringify slash-separated numbers in operations (#612)

Closes #607
This commit is contained in:
Natalie Weizenbaum 2019-03-07 18:14:12 -08:00 committed by GitHub
parent e84c8b1995
commit 62bce0c5b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,9 @@
## 1.17.3
* Fix an edge case where slash-separated numbers were written to the stylesheet
with a slash even when they're used as part of another arithmetic operation,
such as being concatenated with a string.
* Don't put style rules inside empty `@keyframes` selectors.
## 1.17.2

View File

@ -1477,6 +1477,8 @@ relase. For details, see http://bit.ly/moz-document.
length: operator.operator.length);
}
allowSlash = allowSlash && operator == BinaryOperator.dividedBy;
operators ??= [];
operands ??= [];
while (operators.isNotEmpty &&