mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-27 04:34:59 +01:00
parent
486b31b27f
commit
9d3c8cdc1e
@ -11,6 +11,8 @@
|
||||
* Add an `--indented` command-line option for using the indented syntax with a
|
||||
stylesheet from standard input.
|
||||
|
||||
* Don't crash on `$x % 0`.
|
||||
|
||||
### Dart API
|
||||
|
||||
* Add a `Logger` class that allows users to control how messages are printed by
|
||||
|
@ -317,7 +317,8 @@ class SassNumber extends Value implements ext.SassNumber {
|
||||
Value modulo(Value other) {
|
||||
if (other is SassNumber) {
|
||||
return _coerceNumber(other, (num1, num2) {
|
||||
if (num2 >= 0) return num1 % num2;
|
||||
if (num2 > 0) return num1 % num2;
|
||||
if (num2 == 0) return double.NAN;
|
||||
|
||||
// Dart has different mod-negative semantics than Ruby, and thus than
|
||||
// Sass.
|
||||
|
Loading…
Reference in New Issue
Block a user