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">
16 Test that empty patterns are not rendered, and that the fallback color is used instead.
19 <d:operatorScript xmlns=
"http://www.w3.org/1999/xhtml">
21 Run the test. No interaction required.
24 <d:passCriteria xmlns=
"http://www.w3.org/1999/xhtml">
26 The test is passed if there are
8 green rectangles visible, and no red.
30 <title id=
"test-title">$RCSfile: pservers-pattern-
03-f.svg,v $
</title>
33 font-family=
"SVGFreeSansASCII"
34 unicode-range=
"U+0-7F">
36 <font-face-uri xlink:
href=
"../custom/resources/SVGFreeSans.svg#ascii"/>
40 <g id=
"test-body-content" font-family=
"SVGFreeSansASCII,sans-serif" font-size=
"18">
43 <pattern id=
"invisible1">
44 <rect width=
"100%" height=
"100%" fill=
"red"/>
46 <pattern id=
"invisible2" patternUnits=
"objectBoundingBox" patternContentUnits=
"objectBoundingBox">
47 <rect width=
"100%" height=
"100%" fill=
"red"/>
49 <pattern id=
"invisible3" width=
"0" height=
"0" patternUnits=
"objectBoundingBox" patternContentUnits=
"objectBoundingBox">
50 <rect width=
"1" height=
"1" fill=
"red"/>
52 <pattern id=
"invisible4" width=
"0" patternUnits=
"objectBoundingBox" patternContentUnits=
"objectBoundingBox">
53 <rect width=
"1" height=
"1" fill=
"red"/>
55 <pattern id=
"invisible5" width=
"0" height=
"0" patternUnits=
"userSpaceOnUse" patternContentUnits=
"objectBoundingBox">
56 <rect width=
"1" height=
"1" fill=
"red"/>
58 <pattern id=
"invisible6" height=
"0" patternUnits=
"userSpaceOnUse" patternContentUnits=
"objectBoundingBox">
59 <rect width=
"1" height=
"1" fill=
"red"/>
61 <pattern id=
"invisible7" height=
"0" patternUnits=
"userSpaceOnUse" patternContentUnits=
"userSpaceOnUse">
62 <rect width=
"100%" height=
"100%" fill=
"red"/>
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"/>
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>
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>