Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is -moz-use-text-color?

Tags:

css

firefox

gecko

I understand it's deprecated in FireFox, and its replacement is currentColor. My impression is that it's used for SVG-related stuff. But what the heck is it? :)

like image 651
americanyak Avatar asked Feb 17 '10 17:02

americanyak


2 Answers

It's not really for SVG-related stuff.

It does the same as currentColor, e.g.:

a {
  color:purple;
  outline-color:-moz-use-text-color;
}

It was a mozilla specific CSS thing until it became standardized (CSS3)

like image 147
adamJLev Avatar answered Sep 28 '22 05:09

adamJLev


Just a follow up on this, it is deprecated, and the correct usage would be something more along the lines of:

.style {
    outline-color:currentColor;
}
like image 20
americanyak Avatar answered Sep 28 '22 05:09

americanyak