Commit 311b017f authored by Martin Owens's avatar Martin Owens 🤖

Fix #233 allow colours to change in groups

parent 0530bd14
Pipeline #151087808 passed with stages
in 3 minutes and 59 seconds
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="100" width="300" id="color_svg" version="1.1">
<defs id="defs6">
<linearGradient id="lg1">
<stop id="stop849" offset="0" style="stop-color:green;stop-opacity:1"/>
<stop id="stop851" offset="1" style="stop-color:green;stop-opacity:1"/>
</linearGradient>
<linearGradient id="lg2">
<stop id="stop841" offset="0" style="stop-color:green;stop-opacity:1"/>
<stop id="stop843" offset="1" style="stop-color:green;stop-opacity:1"/>
</linearGradient>
<linearGradient gradientUnits="userSpaceOnUse" y2="55" x2="235" y1="15" x1="195" id="slg1" xlink:href="#lg2"/>
<linearGradient gradientUnits="userSpaceOnUse" y2="15" x2="235" y1="55" x1="195" id="slg2" xlink:href="#lg1"/>
<linearGradient gradientUnits="userSpaceOnUse" y2="15" x2="265" y1="55" x1="195" id="slg3" xlink:href="#lg1"/>
<style id="style0"><![CDATA[
#r2 {
fill:green;
stroke:green;
stop-color:green;
}
]]></style>
</defs>
<!--Regular shape with style properties-->
<rect y="15" x="10" height="40" width="40" id="r1" style="opacity:1.0;fill:green;fill-opacity:0.9;stroke:green;stroke-width:10;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.5;paint-order:markers fill stroke;stop-color:green"/>
<!--Regular shape with css styles-->
<rect y="15" x="60" height="40" width="40" id="r2" style="opacity:1.0;fill-opacity:1;stroke-width:10;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers fill stroke"/>
<!--Regular shape with element attributes-->
<rect y="15" x="110" height="40" width="40" id="r3" fill="green" fill-opacity="0.9" stroke-opacity="0.5" style="opacity:1.0;stroke:green;stroke-width:10;stroke-miterlimit:4;stroke-dasharray:none;paint-order:markers fill stroke;stop-color:green"/>
<!--Regular shape with gradients-->
<rect y="15" x="160" height="40" width="40" id="r4" style="opacity:1.0;fill:url(#slg1);fill-opacity:1;stroke:url(#slg2);stroke-width:10;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.5;paint-order:markers fill stroke;stop-color:green"/>
<!--A copy of the gradient to test url hygiene-->
<rect y="15" x="210" height="40" width="40" id="r5" style="opacity:1.0;fill:url(#slg1);fill-opacity:1;stroke:url(#slg3);stroke-width:10;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.5;paint-order:markers fill stroke;stop-color:green"/>
</svg>
\ No newline at end of file
5: #75507b
5: red
5: #729fcf
5: #3465a4
4: #cc0000
3: #5c3566
3: blue
3: #000000
2: #2e3436
7: #75507b
7: red
7: #729fcf
7: #3465a4
6: #cc0000
5: #000000
4: #5c3566
4: blue
3: #2e3436
5: #75507b
5: red
5: #729fcf
5: #3465a4
4: #cc0000
3: #5c3566
3: blue
3: #000000
2: #2e3436
......@@ -28,6 +28,7 @@ class ColorEffectTest(ComparisonMixin, TestCase):
('--id=r3',), # Element Attributes
('--id=r4',), # Gradient stops
('--id=r1', '--id=r2'), # Two shapes
('--id=color_svg',), # Recursive group/children
(), # Process all shapes
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment