sass / sassc-ruby

Use libsass with Ruby!
MIT License
367 stars 156 forks source link

Color functions broken after upgrade to v2.2.0 (Ubuntu 14.04) #151

Open khustochka opened 4 years ago

khustochka commented 4 years ago

So I am on Ubuntu 14.04 32-bit. After upgrade to sassc 2.2.0 I noticed weird colors on my website.

Running the following code: SassC::Engine.new("a {color: darken(#33aa66, 10%);}\n", style: :compressed).render

Expected result (as generated by sassc 2.2.0 on MacOS and by sassc 2.1.0 on Ubuntu): "a{color:#27834e}\n"

Actual result (generated by sassc 2.2.0 on Ubuntu): "a{color:#832727}\n"

As you may notice color segments are messed up, instead of RGB it returns GRR.

I see you removed precompiled gems for Linux (#145) so I am suspecting it is not correctly compiled on my system.

As I said it is Ubuntu 14.04.6 LTS (trusty) 32-bit. Please tell if you need any other information (libraries versions?) I can provide.

Thank you.

amiuhle commented 4 years ago

Having a similar issue where lighten(#5E6469, 5%) is #766a6a instead of #6a7176. Same pattern, the segments are messed up.

Also running on a 32-bit system, I'm thinking this could be the problem.