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

Use filter fallback for rgba values in =<IE8 #68

Open
jokull opened this issue Feb 6, 2012 · 6 comments
Open

Use filter fallback for rgba values in =<IE8 #68

jokull opened this issue Feb 6, 2012 · 6 comments

Comments

@jokull
Copy link

jokull commented Feb 6, 2012

progid:DXImageTransform.Microsoft.gradient with the same #RRGGBBAA value can act as a fallback for browser that do not support rgba values.

Is this a good idea?

See this article http://css-tricks.com/rgba-browser-support/

@tj
Copy link
Collaborator

tj commented Feb 6, 2012

hmm, we have a thing called color-image() for similar cases https://github.com/visionmedia/nib/blob/master/lib/nib/color-image.styl#L2 producing a data uri however I suppose for older browsers that wont work either

@jokull
Copy link
Author

jokull commented Feb 6, 2012

Did a bit of testing on this hack and it's not very reliable.

@jokull jokull closed this as completed Feb 6, 2012
@hellosmithy
Copy link

I've created the following mixin for achieving this - it's pretty clunky as I had to rebuild the hex code from rgb to get it playing nicely with the ms filter.
https://gist.github.com/1769124

@asuth
Copy link

asuth commented Feb 17, 2012

@jokull What was the problem? We've got code that looks like this that has worked for us:

    background: -moz-linear-gradient(top, #fff, #d1d1d1);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0.00, #fff), color-stop(1.00, #d1d1d1));
    filter: progid:DXImageTransform.Microsoft.gradient(Enabled='true',StartColorStr=#ffffffff, EndColorStr=#ffd1d1d1, GradientType=0);

Would be nice if nib figured this out for us.

@jokull
Copy link
Author

jokull commented Feb 18, 2012

We didn't test it fully enough, just had some warning signs that it might not be solid enough. But I suppose if it works for @benmohu and @asuth we should reopen no?

@asuth
Copy link

asuth commented Mar 8, 2012

ya, 👍 to re-open.

@jokull jokull reopened this Mar 9, 2012
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