blob: d158ec580514998fc7fbdd448fe904aa3bf262b9 [file] [log] [blame]
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!--
PASS if single white square with a blue border is shown.
This test ensures that invalid references do NOT reach their badly-specified target node.
So the expected image is not clear what it does.
-->
<defs>
<!--
Defines target node that is never reached by any referrer
-->
<rect id="shape-that-is-never-referred" width="60" height="10"/>
<linearGradient id="grad-that-is-never-referred" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="1" y2="0">
<stop stop-color="blue" offset="0"/>
<stop stop-color="red" offset="1"/>
</linearGradient>
<path id="path-that-is-never-referred" fill="none" stroke="blue" d="M199 89.3 C206.6 66.6 235.8 13.2 270 30.3 286.6 38.6 298.9 59.4 310 73.3 321.7 87.9 338.6 99 356 103.3 387.3 111.1 396.6 90.4 418 74.3"/>
<text id="text-that-is-never-referred">Shoud not be shown.</text>
<!-- Referring gradient with wrong format; A valid href value whould be "#grad-that-is-never-referred". -->
<linearGradient id="grad-with-invalid-href" xlink:href="grad-that-is-never-referred"/>
</defs>
<!--
Tries to referring defined nodes using URIs with wrong format. (They lack "#" for locating internal IDs)
-->
<!-- Referring a shape with wrong format; A valid href value would be "#shape-that-is-never-referred". -->
<use x="20" y="10" id="target" xlink:href="shape-that-is-never-referred" />
<!-- Referring a bad gradient that should result no fill (and blue border). -->
<rect x="20" y="10" width="100" height="100" fill="url(#grad-with-invalid-href)" style="stroke-width:1pt; stroke:blue;"/>
<text font-size="36" font-family="Georgia" fill="black" >
<!-- Referring a path with wrong format; A valid href should be "#path-that-is-never-referred" -->
<textPath font-size="36" xlink:href="path-that-is-never-referred">Shoud not be shown</textPath>
</text>
<text x="20" y="100" fill="black" >
<!-- Referring a text in wrong format; A valid href should be "#text-that-is-never-referred" -->
<tref xlink:href="text-that-is-never-referred" />
</text>
</svg>