
[英]When updating the transform of an SVG element, Firefox moves the clip-path while Chromium doesn't - which is right and what is a portable solution?
[英]Can svg clip-path property be used on tspan element
即使经过大量搜索,我也无法在网上找到对此的任何提及。 当我尝试在tspan元素上使用clip-path时,它对我不起作用。 我是在做错什么还是剪贴路径对于嵌套在文本元素内的tspan元素不起作用? 这是我正在尝试的svg代码。
<svg width="500px" height="500px">
<defs>
<clipPath id="clipPath841">
<rect width="10" y="0" x="0" height="100%"></rect>
</clipPath>
</defs>
<text y="130" x="125" __internalID="internal281">
<tspan textLength="30" clip-path="url(#clipPath841)">
Hello world how are you what are you doing
</tspan>
</text>
</svg>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.