Fix numbers divided by colors.

This commit is contained in:
Natalie Weizenbaum 2017-01-26 18:49:05 -08:00
parent 5b1754a262
commit 4b614166ca
3 changed files with 4 additions and 3 deletions

View File

@ -55,6 +55,8 @@
* Properly handle a backslash followed by a CRLF sequence in a quoted string.
* Fix numbers divided by colors.
## 1.0.0-alpha.8
* Add the `content-exists()` function.

View File

@ -438,8 +438,7 @@ class SassNumber extends Value {
return _multiplyUnits(this.value / other.value, this.numeratorUnits,
this.denominatorUnits, other.denominatorUnits, other.numeratorUnits);
}
if (other is! SassColor) return super.dividedBy(other);
throw new SassScriptException('Undefined operation "$this / $other".');
return super.dividedBy(other);
}
Value unaryPlus() => this;

View File

@ -1,5 +1,5 @@
name: sass
version: 1.0.0-alpha.8
version: 1.0.0-dev
description: A Sass implementation in Dart.
author: Dart Team <misc@dartlang.org>
homepage: https://github.com/sass/dart-sass