2017-03-04 24 views
2

我去了W3C的CSS驗證器網站https://jigsaw.w3.org/css-validator/,並將我正在處理的網站的URL放入它以查看它是否有任何CSS錯誤。W3C CSS驗證器錯誤:'屬性文本渲染不存在:geometricPrecision'

馬上我被甩出通過以下

Property text-rendering doesn't exist : geometricPrecision

我找不到this article,指出該屬性是無效的東西,雖然它有低於理想的瀏覽器支持。

會錯誤導致的問題,我應該有一個備用的屬性?

+2

另請參見:[CSS是否爲SVG「標準」CSS?](http://stackoverflow.com/questions/18470985/is-css-for-svg-standard-css) – BoltClock

+0

謝謝@BoltClock – AdamMcquiff

回答

3

的一部分,從這個MDN頁:

The text-rendering property is an SVG property that is not defined in any CSS standard. However, Gecko and WebKit browsers let you apply this property to HTML and XML content on Windows, Mac OS X and Linux.

text-rendering適用於SVG,不適用於HTML。

http://www.w3.org/TR/SVG11/painting.html#TextRenderingProperty

因爲它是不以任何CSS標準定義驗證理所當然是這麼說的。

+0

我不知道SVG屬性在W3C CSS規範中沒有考慮到。感謝你的回答。 – AdamMcquiff

2

您需要一定要選擇,其中包括SVG「更多選項」部分中驗證配置文件作爲這個屬性是不是你掛CSS 3

+0

謝謝,這很有幫助! – AdamMcquiff