Chrome v49letter-spacings
在与矩阵变换和平移结合使用时破坏了 SVG:
活生生的例子:https ://jsfiddle.net/75fpn6de/6/
SVG:
<svg height="300px" version="1.1" width="100%" xmlns="http://www.w3.org/2000/svg">
<g transform="matrix(0.20695652173913043,0,0,0.20695652173913043,0,10.881739130434767)">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ev="http://www.w3.org/2001/xml-events" version="1.1" viewBox="0 0 2500 2794" width="2500" height="2794">
<g transform="translate(1436.5 1087) rotate(0)">
<text xmlns="http://www.w3.org/2000/svg" fill="#ed7373" y="237" style="font-family: 'Great Vibes';" font-size="237" letter-spacing="0.1em" text-anchor="middle">Some text</text>
</g>
</svg>
</g>
</svg>
CSS:
@import url(https://fonts.googleapis.com/css?family=Great+Vibes);
我在这里做错了什么(比如违反了一些规范)并且 Chrome 变得更加“限制性”还是 Chrome 中新引入的错误?
仅供参考:这个例子(显然)只是一个更大的 SVG 的一小部分,它是由服务器动态生成的,我不能仅仅改变嵌套和变换矩阵和翻译函数的使用。