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

convert from longhand hex to shorthand hex breaks ie dxgradients convert longhand hex to shorthand hex color conversion #aabbcc to #abc breaks DXFilter #8

Open
shepik opened this issue Feb 26, 2012 · 3 comments

Comments

@shepik
Copy link

shepik commented Feb 26, 2012

filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#e6e6e6',endColorstr='#ffffff',GradientType=0 )
This line is broken if "ffffff" is replaced by "fff" (and fff is for some strange reason interpreted as #000000, so instead of white you have black)
Affected browsers: ie9, ie8, ie7

@antris
Copy link
Contributor

antris commented Jul 23, 2012

I can take a look at this.

@heynemann
Copy link
Contributor

Pull request #14 fixes that.

@fizker
Copy link
Contributor

fizker commented Dec 28, 2012

Pull request #14 does actually not fix this, it only applies to gradient-hexes with 8 digits (including alpha channel).
It is perfectly valid to only use 6 digits as well.

Try require('sqwish').minify("body{filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#EEEEEE', EndColorStr='#ffffff');}")) in the current version (4d7eca2) to test it.

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

No branches or pull requests

4 participants