Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / W3C-SVG-1.1-SE / pservers-pattern-03-f.svg
blob55973c52e821fbea11e702e1728273690c57f232
1 <svg id="svg-root" width="100%" height="100%"
2 viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg"
3 xmlns:xlink="http://www.w3.org/1999/xlink">
4 <!--======================================================================-->
5 <!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =-->
6 <!--= Institute of Technology, European Research Consortium for =-->
7 <!--= Informatics and Mathematics (ERCIM), Keio University). =-->
8 <!--= All Rights Reserved. =-->
9 <!--= See http://www.w3.org/Consortium/Legal/. =-->
10 <!--======================================================================-->
11 <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
12 template-version="1.4" reviewer="[reviewer]" author="ED" status="created"
13 version="$Revision: 1.1 $" testname="$RCSfile: pservers-pattern-03-f.svg,v $">
14 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/pservers.html#Patterns">
15 <p>
16 Test that empty patterns are not rendered, and that the fallback color is used instead.
17 </p>
18 </d:testDescription>
19 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
20 <p>
21 Run the test. No interaction required.
22 </p>
23 </d:operatorScript>
24 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
25 <p>
26 The test is passed if there are 8 green rectangles visible, and no red.
27 </p>
28 </d:passCriteria>
29 </d:SVGTestCase>
30 <title id="test-title">$RCSfile: pservers-pattern-03-f.svg,v $</title>
31 <defs>
32 <font-face
33 font-family="SVGFreeSansASCII"
34 unicode-range="U+0-7F">
35 <font-face-src>
36 <font-face-uri xlink:href="../custom/resources/SVGFreeSans.svg#ascii"/>
37 </font-face-src>
38 </font-face>
39 </defs>
40 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
42 <defs>
43 <pattern id="invisible1">
44 <rect width="100%" height="100%" fill="red"/>
45 </pattern>
46 <pattern id="invisible2" patternUnits="objectBoundingBox" patternContentUnits="objectBoundingBox">
47 <rect width="100%" height="100%" fill="red"/>
48 </pattern>
49 <pattern id="invisible3" width="0" height="0" patternUnits="objectBoundingBox" patternContentUnits="objectBoundingBox">
50 <rect width="1" height="1" fill="red"/>
51 </pattern>
52 <pattern id="invisible4" width="0" patternUnits="objectBoundingBox" patternContentUnits="objectBoundingBox">
53 <rect width="1" height="1" fill="red"/>
54 </pattern>
55 <pattern id="invisible5" width="0" height="0" patternUnits="userSpaceOnUse" patternContentUnits="objectBoundingBox">
56 <rect width="1" height="1" fill="red"/>
57 </pattern>
58 <pattern id="invisible6" height="0" patternUnits="userSpaceOnUse" patternContentUnits="objectBoundingBox">
59 <rect width="1" height="1" fill="red"/>
60 </pattern>
61 <pattern id="invisible7" height="0" patternUnits="userSpaceOnUse" patternContentUnits="userSpaceOnUse">
62 <rect width="100%" height="100%" fill="red"/>
63 </pattern>
64 </defs>
66 <g transform="translate(40 60)" stroke="black">
67 <rect width="100" height="100" fill="url(#invisible1) lime"/>
68 <rect x="100" width="100" height="100" fill="url(#invisible2) lime"/>
69 <rect x="200" width="100" height="100" fill="url(#invisible3) lime"/>
70 <rect x="300" width="100" height="100" fill="url(#invisible4) lime"/>
72 <rect y="100" width="100" height="100" fill="url(#invisible5) lime"/>
73 <rect x="100" y="100" width="100" height="100" fill="url(#invisible6) lime"/>
74 <rect x="200" y="100" width="100" height="100" fill="url(#invisible7) lime"/>
76 <!-- note that this is on purpose testing a broken uri -->
77 <rect x="300" y="100" width="100" height="100" fill="url(#invisible8) lime"/>
78 </g>
79 </g>
80 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
81 <text id="revision" x="10" y="340" stroke="none"
82 fill="black">$Revision: 1.1 $</text>
83 </g>
84 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
85 <!-- comment out this watermark once the test is approved -->
86 <g id="draft-watermark">
87 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
88 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
89 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
90 </g>
91 </svg>