summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svgio/qa/cppunit/SvgImportTest.cxx4
-rw-r--r--svgio/qa/cppunit/data/tdf156034.svg16
2 files changed, 19 insertions, 1 deletions
diff --git a/svgio/qa/cppunit/SvgImportTest.cxx b/svgio/qa/cppunit/SvgImportTest.cxx
index 651e1341521f..abef91413077 100644
--- a/svgio/qa/cppunit/SvgImportTest.cxx
+++ b/svgio/qa/cppunit/SvgImportTest.cxx
@@ -338,6 +338,10 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf156034)
assertXPath(pDocument, "/primitive2D/transform/polypolygoncolor[2]", "color", "#008000");
assertXPath(pDocument, "/primitive2D/transform/polypolygoncolor[3]", "color", "#008000");
assertXPath(pDocument, "/primitive2D/transform/polypolygoncolor[4]", "color", "#008000");
+ assertXPath(pDocument, "/primitive2D/transform/polypolygoncolor[5]", "color", "#008000");
+ assertXPath(pDocument, "/primitive2D/transform/polypolygoncolor[6]", "color", "#008000");
+ assertXPath(pDocument, "/primitive2D/transform/polypolygoncolor[7]", "color", "#008000");
+ assertXPath(pDocument, "/primitive2D/transform/polypolygoncolor[8]", "color", "#008000");
}
CPPUNIT_TEST_FIXTURE(Test, testTdf156018)
diff --git a/svgio/qa/cppunit/data/tdf156034.svg b/svgio/qa/cppunit/data/tdf156034.svg
index ed14c5fe4aaf..1cd3a82b78e2 100644
--- a/svgio/qa/cppunit/data/tdf156034.svg
+++ b/svgio/qa/cppunit/data/tdf156034.svg
@@ -1,8 +1,10 @@
-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-0 0 300 300">
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-0 0 800 800">
<style>
.g1 rect {fill:green;}
#g3 rect {fill:green;}
+ .g4 #r1 {fill:green;}
+ #g3 .r5 {fill:green;}
</style>
<g class="g4 g1">
@@ -17,4 +19,16 @@
</g>
<rect x="180" y="0" height="50" width="50" fill="blue"></rect>
</g>
+ <g class="g4 g1">
+ <g>
+ <rect id="r1" x="240" y="0" height="50" width="50" fill="blue"></rect>
+ </g>
+ <rect id="r1" x="300" y="0" height="50" width="50" fill="blue"></rect>
+ </g>
+ <g id="g3">
+ <g id="g4">
+ <rect class="r5" x="360" y="0" height="50" width="50" fill="blue"></rect>
+ </g>
+ <rect class="r5" x="420" y="0" height="50" width="50" fill="blue"></rect>
+ </g>
</svg>