clip-path seems to be wrong in SVG render mode
fskpf opened this issue · 1 comments
fskpf commented
The text is entirely clipped for the test-images/clippath-rect2.svg
.
Looks like the transform on the clip-path defs element is superfluous, causing it be be transformed twice?
Something similar can be observed for the test-images/uml1.svg
.
Works correctly for canvas rendering, as clipping is done differently there.
fskpf commented
The issue is with the text-container. The clip-path should not be applied to the text-container directly, but wrapped around it with another <g>
element. This is also why clipping works properly for the other SVG elements, as those do not create an additional container for the text.