forked from amazingfate/loongoffice
if the style attributes are set like
<rect x="10" y="10" width="100" height="100" fill="#00D000"
clip-path="url(#myClip)"/>
it works, however, if it uses a css style like
<rect x="10" y="10" width="100" height="100" style="fill:#00D000"
clip-path="url(#myClip)"/>
it fails to get the clipPath from the parent, because the css style
is the direct parent, thus, check one level up
Change-Id: Iff6df95c9fa9da4c2f1a986cca0ad82ab1494353
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137094
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
14 lines
387 B
XML
14 lines
387 B
XML
<?xml version="1.0"?>
|
|
<svg width="120" height="120"
|
|
viewPort="0 0 120 120" version="1.1"
|
|
xmlns="http://www.w3.org/2000/svg">
|
|
|
|
<clipPath id="myClip">
|
|
<rect x="30" y="30" width="20" height="20"/>
|
|
<rect x="70" y="70" width="20" height="20"/>
|
|
</clipPath>
|
|
|
|
<rect x="10" y="10" width="100" height="100" style="fill:#00D000"
|
|
clip-path="url(#myClip)"/>
|
|
</svg>
|