Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / broken-internal-references.svg
blobd158ec580514998fc7fbdd448fe904aa3bf262b9
1 <?xml version="1.0" standalone="no"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
3 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4 <svg version="1.1"
5 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
7 <!--
8 PASS if single white square with a blue border is shown.
9 This test ensures that invalid references do NOT reach their badly-specified target node.
10 So the expected image is not clear what it does.
11 -->
13 <defs>
14 <!--
15 Defines target node that is never reached by any referrer
16 -->
17 <rect id="shape-that-is-never-referred" width="60" height="10"/>
19 <linearGradient id="grad-that-is-never-referred" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="1" y2="0">
20 <stop stop-color="blue" offset="0"/>
21 <stop stop-color="red" offset="1"/>
22 </linearGradient>
24 <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"/>
26 <text id="text-that-is-never-referred">Shoud not be shown.</text>
28 <!-- Referring gradient with wrong format; A valid href value whould be "#grad-that-is-never-referred". -->
29 <linearGradient id="grad-with-invalid-href" xlink:href="grad-that-is-never-referred"/>
30 </defs>
32 <!--
33 Tries to referring defined nodes using URIs with wrong format. (They lack "#" for locating internal IDs)
34 -->
36 <!-- Referring a shape with wrong format; A valid href value would be "#shape-that-is-never-referred". -->
37 <use x="20" y="10" id="target" xlink:href="shape-that-is-never-referred" />
39 <!-- Referring a bad gradient that should result no fill (and blue border). -->
40 <rect x="20" y="10" width="100" height="100" fill="url(#grad-with-invalid-href)" style="stroke-width:1pt; stroke:blue;"/>
42 <text font-size="36" font-family="Georgia" fill="black" >
43 <!-- Referring a path with wrong format; A valid href should be "#path-that-is-never-referred" -->
44 <textPath font-size="36" xlink:href="path-that-is-never-referred">Shoud not be shown</textPath>
45 </text>
47 <text x="20" y="100" fill="black" >
48 <!-- Referring a text in wrong format; A valid href should be "#text-that-is-never-referred" -->
49 <tref xlink:href="text-that-is-never-referred" />
50 </text>
52 </svg>