搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

Why do you only support text-stroke with the -webkit prefix i.e. -webkit-text-stroke

more options

It is not generally know that you can use -webkit-text-stroke in firefox. -moz-text-stroke does not work. Why is this and how many other css rules are like this? Is this documented anywhere?

It is not generally know that you can use -webkit-text-stroke in firefox. -moz-text-stroke does not work. Why is this and how many other css rules are like this? Is this documented anywhere?

由 info325 於 修改

所有回覆 (1)

more options

Hi info325, there is documentation on the MDN site:

https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke

-moz-text-stroke does not work. Why is this and how many other css rules are like this? Is this documented anywhere?

Vendor-prefixed properties usually get standardized eventually. It appears that text-stroke is one of a number of exceptions that is NOT going to be standardized, and will always be a webkit property. It's on a list of webkit properties that other browsers are supposed to support for compatibility:

https://compat.spec.whatwg.org/