Skip to content

Fix ie_hex_str for HTML4 colors #11

Merged
merged 2 commits into from Dec 12, 2011

2 participants

@bgarret
bgarret commented Dec 12, 2011

Sass::Script::Color#to_s returns the human readable form when it belongs to the set of HTML4 colors.

This means that the following:

ie_hex_str(#ffffff)

will return:

#ffwhite

This breaks the btn and breadcrumb classes on IE (among others).

@bgarret
bgarret commented Dec 12, 2011

I took the liberty of adding some tests, related to the current bug fix. I used the default ruby test framework and I can confirm they pass both on ruby 1.9.2 and 1.8.7.

@yury yury merged commit f8220ef into anjlab:master Dec 12, 2011
@yury
AnjLab member
yury commented Dec 12, 2011

@bgarret, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.