2

I went to the W3C's CSS validator website, https://jigsaw.w3.org/css-validator/ and put the URL for a website I am working on into it to see if it had any CSS errors.

Straight away I was thrown off by the following

Property text-rendering doesn't exist : geometricPrecision

I cannot find anything in this article that says the attribute is not valid, although it had less-than-ideal browser support.

Is the error going to cause an issue and should I include a fallback attribute?

unor
  • 92,415
  • 26
  • 211
  • 360
Adam McKenna
  • 2,295
  • 6
  • 30
  • 41
  • 2
    See also: [Is CSS for SVG “standard” CSS?](http://stackoverflow.com/questions/18470985/is-css-for-svg-standard-css) – BoltClock Mar 04 '17 at 16:14

2 Answers2

3

From that MDN page you linked:

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 is for SVG, not for HTML.

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

Since it is not defined in any CSS standard the validator rightfully says so.

connexo
  • 53,704
  • 14
  • 91
  • 128
2

You need to be sure to select a validation profile that includes SVG in the "More options" section as this property is not part of CSS 3

Dancrumb
  • 26,597
  • 10
  • 74
  • 130