Skip to content

Fix a graphical bug in Firefox - Should fix #24#33

Merged
hojberg merged 3 commits intohojberg:masterfrom
yannickcr:master
Aug 24, 2012
Merged

Fix a graphical bug in Firefox - Should fix #24#33
hojberg merged 3 commits intohojberg:masterfrom
yannickcr:master

Conversation

@yannickcr
Copy link
Contributor

The graphical bug in Firefox was caused by the anti-aliasing between the colored border and the transparent one.

You can read more information on this 'issue' on this blog post from Chris Morgan: CSS's "transparent" may not be transparent, especially on diagonal borders

I resolved the issue by replacing transparent by the user-selected color with an alpha of 0. Transparent is still used for IE8 who do not know rgba().

@hojberg
Copy link
Owner

hojberg commented Aug 20, 2012

Sweet! Could you add a test to that and i'll merge it in :) Thanks!

@yannickcr
Copy link
Contributor Author

Hi,

I added some tests for the hexToRGB function and a test for the _arrowCSS border color.
I also updated the hexToRGB function to check the input color and to support 3 char hex colors (ex: #888).

@hojberg
Copy link
Owner

hojberg commented Aug 24, 2012

Thanks!

hojberg added a commit that referenced this pull request Aug 24, 2012
Fix a graphical bug in Firefox - Should fix #24
@hojberg hojberg merged commit 9f7235d into hojberg:master Aug 24, 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

Successfully merging this pull request may close these issues.

2 participants