sassc-ruby icon indicating copy to clipboard operation
sassc-ruby copied to clipboard

Color functions broken

Open amiuhle opened this issue 6 years ago • 1 comments

I was able to reproduce #151 using Docker. I added a test case that simply renders a { color: lighten(#abc, 0%); }.

The test is successfull on Ubuntu 14.04 64-bit using this Dockerfile:

FROM ubuntu:14.04
RUN apt-get update -q && apt-get install build-essential git software-properties-common -y
RUN apt-add-repository ppa:brightbox/ruby-ng
RUN apt-get update -q && apt-get install ruby2.3 ruby2.3-dev -y
ADD . /sassc-ruby
WORKDIR /sassc-ruby
RUN gem install bundler
RUN bundle install
RUN rake test

But on 14.04 32-bit using this Dockerfile, it fails:

FROM i386/ubuntu:14.04
RUN apt-get update -q && apt-get install build-essential git software-properties-common -y
RUN apt-add-repository ppa:brightbox/ruby-ng
RUN apt-get update -q && apt-get install ruby2.3 ruby2.3-dev -y
ADD . /sassc-ruby
WORKDIR /sassc-ruby
RUN gem install bundler
RUN bundle install
RUN rake test

Output:

SassC::EngineTest#test_color_functions [/sassc-ruby/test/engine_test.rb:320]:
--- expected
+++ actual
@@ -1,3 +1,3 @@
 "a {
-  color: #aabbcc; }
+  color: #ccaaaa; }
 "

Any ideas?

amiuhle avatar Sep 27 '19 13:09 amiuhle

Using i386/ubuntu:16.04, the test is also successful.

I'm having this problem on Debian 7.

amiuhle avatar Sep 27 '19 14:09 amiuhle