Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow mod 0 #1229

Merged
merged 1 commit into from
Mar 16, 2018
Merged

Allow mod 0 #1229

merged 1 commit into from
Mar 16, 2018

Conversation

nex3
Copy link
Contributor

@nex3 nex3 commented Mar 15, 2018

To match the behavior of dividing by zero, this should produce NaN
rather than failing.

See also #1228

[skip ruby-sass]
[skip dart-sass]

To match the behavior of dividing by zero, this should produce NaN
rather than failing.

See also #1228
This was referenced Mar 15, 2018
@nex3 nex3 merged commit 7390b1b into master Mar 16, 2018
@nex3 nex3 deleted the allow-mod-zero branch March 16, 2018 20:49
@mgreter
Copy link
Contributor

mgreter commented Mar 17, 2018

FWIW: ruby sass 3.5.6 also crashes for:

  foo { bar: $foo / #000000; }

But since color math is deprecated I guess there is no intention to fix this ...
Therefore I also guess we can keep libsass error until sass/sass#2144

@nex3
Copy link
Contributor Author

nex3 commented Mar 22, 2018

I'm pretty confident no one will run into that issue before Ruby Sass hits end-of-life 😝.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants