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

Text color is dark in Firefox #4

Open
namzo opened this issue Dec 16, 2012 · 4 comments
Open

Text color is dark in Firefox #4

namzo opened this issue Dec 16, 2012 · 4 comments

Comments

@namzo
Copy link

namzo commented Dec 16, 2012

The color of the background & text are the same in Firefox. I tested on Firefox 18.0 on Mac.

@kontur
Copy link

kontur commented May 13, 2013

Can you post a jsfiddle or other online example showing that behaviour in a repeatable way?

@spaceninja
Copy link

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.

screen shot 2014-03-19 at 1 49 06 pm

  • I am using Firefox 27.0.1 on a mac.

@vpugh
Copy link

vpugh commented Apr 3, 2014

Set textColor to a value instead of leaving at null. This worked for me.

@sasindu555
Copy link

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 .css('color', 'rgb(255, 255, 255)') instead of .css('color', color)

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

5 participants