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

If you want it to work with IE8 #39

Open
thesheep opened this issue Mar 27, 2013 · 6 comments
Open

If you want it to work with IE8 #39

thesheep opened this issue Mar 27, 2013 · 6 comments

Comments

@thesheep
Copy link

Just add a fallback that uses background-color: transparent instead of rgba.

/* Fallback for IE8- which doesn't understand rgba */
border: 20px solid transparent;
/* Feed rgba to other browsers (FF PC needs it to avoid a bug) */
border: 20px solid rgba(255,255,255,0);
@thany
Copy link

thany commented Jun 18, 2013

What's the point of the rgba() version anyway? Zero opacity with any color is the same as transparent, is it not?

@thesheep
Copy link
Author

As I said in the comments within the CSS above, some browsers need the 'transparent' version (IE8-) and other browsers specifically need the rgba() version (FF PC). So the reason for having the rgba() version is to support that particular browser.

@hojberg
Copy link
Owner

hojberg commented Jun 18, 2013

I'll add this shortly.

@thany
Copy link

thany commented Jun 18, 2013

Loosely related, can you (@thesheep) point to a resource that describes or demonstrates the bug in FF? I'm quite interested to see what it's about. Because, I've personally never seen any issues with it, to be perfectly honest.

@thesheep
Copy link
Author

@thany Um, no sorry. I tested it on a page I was building at the time, but don't have access to it anymore. If you've tried the code above and you don't have a problem on FF for Windows, then perhaps they have plugged the issue with a new version of FF? Should be fairly easy to test.

@thany
Copy link

thany commented Jun 18, 2013

I did some more research on this in the mean time, and the only thing I could find is a thin darkened border appearing on the slanted sides of the "triangle", but only when hardware acceleration is disabled in Firefox options. Of course we shouldn't assume hardware acceleration is always enabled.

I also read it can be worked around by using border-style: outset instead of the usual solid. But that produces a slighty weird result as well, on all IE's. So I guess rgba() is the better option after all.

At least it's been cleared up so far :)

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

3 participants