开发者

What is -moz-use-text-color?

I understand it's deprecated in FireFox, and its replacement is currentColor. My impress开发者_开发百科ion is that it's used for SVG-related stuff. But what the heck is it? :)


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)


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;
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜