Using a clipping path with a positioned object in Webkit

后端 未结 1 1748
误落风尘
误落风尘 2021-01-19 20:40

Consider this simple SVG file:


  

        
1条回答
  •  别那么骄傲
    2021-01-19 21:05

    The easiest, standards-compliant way to differentiate between these is to use the SVG test suite provided by W3.org. This suite provides tests for use structs that you can play with to determine compliance, among many others.

    The problem is how your y value is being parsed, which is causing your figure to translate out of the second frame, but only in some browsers. This is the correct, cross-browser way to specify the desired translation:

    transform="translate(0,80)"/>

    I would assume the dubious parsing with respect to the current clipping pane is a regression.

    0 讨论(0)
提交回复
热议问题