Debian Codegraph @

test_non_regression/svg/painting-control-01-f.svg

raw
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="CL" author="Microsoft" status="accepted"
13 version="$Revision: 1.4 $" testname="$RCSfile: painting-control-01-f.svg,v $">
14 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/painting.html#VisibilityControl">
15 <p>
16 Elements are rendered when the 'display' attribute is set to any valid value other than 'none'.
17 </p>
18 <p>
19 For each valid 'display' value (except none), the test creates a 'rect' element with that 'display' value assigned. Under that
20 element, a red 'rect' is placed at the exact same 'x', 'y' position with the same height and width. Test passes if the 'rect'
21 with 'display' covers the red 'rect'.
22 </p>
23 </d:testDescription>
24 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
25 <p>
26 Run the test. No interaction required.
27 </p>
28 </d:operatorScript>
29 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
30 <p>
31 Test passes if 16 black rectangles are shown and there is no red visible on the page.
32 </p>
33 </d:passCriteria>
34 </d:SVGTestCase>
35 <title id="test-title">$RCSfile: painting-control-01-f.svg,v $</title>
36 <defs>
37 <font-face
38 font-family="SVGFreeSansASCII"
39 unicode-range="U+0-7F">
40 <font-face-src>
41 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
42 </font-face-src>
43 </font-face>
44 </defs>
45 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
46
47 <rect width="48px" height="48px" fill="red" />
48 <rect width="48px" height="48px" display="inline" />
49
50 <rect x="50px" width="48px" height="48px" fill="red" />
51 <rect x="50px" width="48px" height="48px" display="block" />
52
53 <rect x="100px" width="48px" height="48px" fill="red" />
54 <rect x="100px" width="48px" height="48px" display="list-item" />
55
56 <rect x="150px" width="48px" height="48px" fill="red" />
57 <rect x="150px" width="48px" height="48px" display="run-in" />
58
59 <rect y="50px" width="48px" height="48px" fill="red" />
60 <rect y="50px" width="48px" height="48px" display="compact" />
61
62 <rect x="50px" y="50px" width="48px" height="48px" fill="red" />
63 <rect x="50px" y="50px" width="48px" height="48px" display="marker" />
64
65 <rect x="100px" y="50px" width="48px" height="48px" fill="red" />
66 <rect x="100px" y="50px" width="48px" height="48px" display="table" />
67
68 <rect x="150px" y="50px" width="48px" height="48px" fill="red" />
69 <rect x="150px" y="50px" width="48px" height="48px" display="inline-table" />
70
71 <rect y="100px" width="48px" height="48px" fill="red" />
72 <rect y="100px" width="48px" height="48px" display="table-row-group" />
73
74 <rect x="50px" y="100px" width="48px" height="48px" fill="red" />
75 <rect x="50px" y="100px" width="48px" height="48px" display="table-header-group" />
76
77 <rect x="100px" y="100px" width="48px" height="48px" fill="red" />
78 <rect x="100px" y="100px" width="48px" height="48px" display="table-footer-group" />
79
80 <rect x="150px" y="100px" width="48px" height="48px" fill="red" />
81 <rect x="150px" y="100px" width="48px" height="48px" display="table-row" />
82
83 <rect y="150px" width="48px" height="48px" fill="red" />
84 <rect y="150px" width="48px" height="48px" display="table-column-group" />
85
86 <rect x="50px" y="150px" width="48px" height="48px" fill="red" />
87 <rect x="50px" y="150px" width="48px" height="48px" display="table-column" />
88
89 <rect x="100px" y="150px" width="48px" height="48px" fill="red" />
90 <rect x="100px" y="150px" width="48px" height="48px" display="table-cell" />
91
92 <rect x="150px" y="150px" width="48px" height="48px" fill="red" />
93 <rect x="150px" y="150px" width="48px" height="48px" display="table-caption" />
94
95 </g>
96 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
97 <text id="revision" x="10" y="340" stroke="none"
98 fill="black">$Revision: 1.4 $</text>
99 </g>
100 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
101 <!-- comment out this watermark once the test is approved
102 <g id="draft-watermark">
103 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
104 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
105 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
106 </g>-->
107 </svg>