SVG + transform-origin problems in Firefox

只愿长相守 提交于 2019-11-28 14:21:50

The shapes expect the transform-box property to be fill-box i.e.

transform-box: fill-box

Firefox only supports this if the about:config svg.transform-origin.enabled is set to true (Firefox 41, 42) or svg.transform-box.enabled is set to true (Firefox 43 onwards).

Chrome is wrong here as it is assuming that the origin is the fill-box rather than the view-box as the specification states. This inconsistency with the specification is why it's not enabled in Firefox by default as the specification may change to match Chrome's implementation.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!