Kronuz / pyScss

pyScss, a Scss compiler for Python
MIT License
582 stars 141 forks source link

[#404] Linear gradient zero division. #406

Closed matyasrichter closed 4 years ago

matyasrichter commented 4 years ago

Fixes issue #404.

When a linear-gradient with stop-values of 0 and 100% was being evaluated, the zero was marked as the max value in the list of stops and therefore used as the denominator of a fraction, causing a ZeroDivisionError.

coveralls commented 4 years ago

Coverage Status

Coverage decreased (-0.05%) to 66.809% when pulling 7d0490e09c0d0baa15b91cf172b1ba4d1ee4b187 on matyasrichter:master into 36e8452b35d14ebdb32e308b219028ce2d8bfea0 on Kronuz:master.

coveralls commented 4 years ago

Coverage Status

Coverage decreased (-0.05%) to 66.809% when pulling 7d0490e09c0d0baa15b91cf172b1ba4d1ee4b187 on matyasrichter:master into 36e8452b35d14ebdb32e308b219028ce2d8bfea0 on Kronuz:master.

e0ne commented 4 years ago

Thank you for your contribution, @matyasrichter