5

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 的一小部分,它是由服务器动态生成的,我不能仅仅改变嵌套和变换矩阵和翻译函数的使用。

4

1 回答 1

1

我遇到了同样的问题,即使我在更新日志中找不到任何关于此问题的信息,它似乎已在 Chrome 50 中得到修复。

于 2016-04-21T08:50:28.733 回答