Why does Chrome read the svg circle radius from the style attribute?

前端 未结 1 815
情书的邮戳
情书的邮戳 2021-01-19 07:27

I develop with chrome dev tools.

I just had a demo with IE11.

Well, yes my mistake for not checking with IE, and the syntax below wasn\'t intended (made a mi

相关标签:
1条回答
  • 2021-01-19 08:02

    The current published version of the SVG specification is 1.1 it states that the radius of a circle is an attribute and not a CSS property. That's what IE implements.

    There is a new version of the SVG specification being worked on, version 2. In it, the radius of a circle (along with many other things that are currently attributes) would be CSS properties. That's what Chrome implements.

    Chrome is experimenting with implementing parts of the SVG 2 specification as is Firefox. Different UAs have implemented different parts of the SVG 2 specification as they investigate SVG 2 prior to its completion to prove that it's feasible to implement it.

    0 讨论(0)
提交回复
热议问题