office-gobmx/svgio/qa/cppunit/data/ShapeWithClipPathAndCssStyle.svg
Xisco Fauli 82c0a363ab tdf#97539; if parent is css style, look one level up
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>
2022-07-15 19:10:12 +02:00

13 lines
387 B
XML