-
Notifications
You must be signed in to change notification settings - Fork 103
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
Text color is dark in Firefox #4
Comments
Can you post a jsfiddle or other online example showing that behaviour in a repeatable way? |
You can see the issue on the typer.js demo page: http://cosmos.layervault.com/typer-js.html Note this only happens in Firefox -- Chrome, Safari, and IE all work as expected, but in FF, the highlighted string is a solid block of color, instead of reversing the text.
|
Set textColor to a value instead of leaving at null. This worked for me. |
spanWithColor = function(color, backgroundColor) {
if (color === 'rgba(0, 0, 0, 0)') {
color = 'rgb(255, 255, 255)';
}
return $('<span></span>')
//.css('color', color)
.css('color', 'rgb(255, 255, 255)')
.css('background-color', 'rgb(255, 190, 76)');
}; Use this |
The color of the background & text are the same in Firefox. I tested on Firefox 18.0 on Mac.
The text was updated successfully, but these errors were encountered: