在 W3C的规格, 它说:
'transform'属性的值是<transform-list>,它被定义为变换定义列表,它按照提供的顺序应用。
...
如果提供了变换列表,那么净效果就好像每个变换都是按照提供的顺序单独指定的
当我尝试使用firefox,chrome和IE10中的跟随标记时,所有三个通过首先进行翻译,然后通过旋转进行渲染!见 codepen片段。我错过了什么?或者3个浏览器的实现不符合W3C?
<svg width="180" height="200"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- This is the element before translation and rotation are applied -->
<rect x="0" y="0" height="100" width="100" style="stroke:#000; fill: #0086B2" fill-opacity=0.2 stroke-opacity=0.2></rect>
<!-- Now we add a text element and apply rotate and translate to both -->
<rect x="0" y="0" height="100" width="100" style="stroke:#000; fill: #0086B2" transform="rotate(45 100 50) translate(50)"></rect>
</svg>