开发者

What is -moz-use-text-color?

开发者 https://www.devze.com 2022-12-20 06:13 出处:网络
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-

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

精彩评论

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

关注公众号