Debian Codegraph @

test_non_regression/fail/na/animation/animate-interact-pevents-04-t.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="DOH" author="AE" status="accepted"
13 version="$Revision: 1.2 $" testname="$RCSfile: animate-interact-pevents-04-t.svg,v $">
14 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/interact.html#PointerEventsProperty">
15 <p>Tests the pointer-events attribute with different painting values</p>
16 <p>
17 The 2nd and 3rd columns represent respectively rects with no fill/stroke and transparent fill/stroke.
18 The 4th column has visibility set to hidden.
19 </p>
20 <p>
21 The first row tests pointer-events="painted", i.e. event on fill and stroke that are set.
22 The second row tests pointer-events="fill", i.e. event on a fill that is set.
23 The third row tests pointer-events="stroke", i.e. even on a stroke that is et.
24 The fourth row tests pointer-events="all", i.e. event on fill and stroke that are set.
25 The fifth row tests pointer-events="none", i.e. no event.
26 </p>
27 </d:testDescription>
28 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
29 <p>
30 Slowly move the mouse over the rectangles in each row while checking the pass criteria.
31 </p>
32 </d:operatorScript>
33 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
34 <p>
35 The test is passed if the following conditions are met:
36 </p>
37 <ul>
38 <li>In the first row of squares, the fill and stroke of squares 1, 3 and 4 only must trigger a pale red rectangle to appear
39 over the squares on mouseover.</li>
40 <li>In the second row of squares, the fill only of all squares must trigger a pale red rectangle to appear
41 over the squares on mouseover.</li>
42 <li>In the third row of squares, the stroke only of all must trigger a pale red rectangle to appear
43 over the squares on mouseover.</li>
44 <li>In the fourth row of squares, the fill and stroke of all squares must trigger a pale red rectangle to appear
45 over the squares on mouseover.</li>
46 <li>In the fifth row of squares, nothing is to trigger on mouseover.</li>
47 </ul>
48 </d:passCriteria>
49 </d:SVGTestCase>
50 <title id="test-title">$RCSfile: animate-interact-pevents-04-t.svg,v $</title>
51 <defs>
52 <font-face
53 font-family="SVGFreeSansASCII"
54 unicode-range="U+0-7F">
55 <font-face-src>
56 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
57 </font-face-src>
58 </font-face>
59 </defs>
60 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
61 <g text-anchor="middle">
62 <text id="display-title" x="240" y="25" fill="#555" font-size="12">
63 <tspan fill="black" font-size="10">Testing pointer-events</tspan> - pale RED rect should appear on mouseover.
64 </text>
65 <text id="comment-1" x="240" y="37" fill="#555" font-size="10">
66 2nd and 3rd columns represent respectively rects with no fill/stroke and transparent fill/stroke
67 </text>
68 </g>
69 <g transform="translate(0, 5)">
70 <g transform="translate(25, 50)">
71 <rect x="-10" y="-10" width="200" height="50" fill="red" fill-opacity="0">
72 <set attributeName="fill-opacity" to="0.4" begin="r60.mouseover"/>
73 <set attributeName="fill-opacity" to="0" begin="r60.mouseout"/>
74 <set attributeName="fill-opacity" to="0.4" begin="r61.mouseover"/>
75 <set attributeName="fill-opacity" to="0" begin="r61.mouseout"/>
76 <set attributeName="fill-opacity" to="0.4" begin="r62.mouseover"/>
77 <set attributeName="fill-opacity" to="0" begin="r62.mouseout"/>
78 <set attributeName="fill-opacity" to="0.4" begin="r63.mouseover"/>
79 <set attributeName="fill-opacity" to="0" begin="r63.mouseout"/>
80 </rect>
81 <rect id="r60" width="30" height="30" fill="blue" stroke-width="10" stroke="blue" fill-opacity=".3" stroke-opacity=".3" pointer-events="painted"/>
82 <rect x="50" width="30" height="30" fill="black" fill-opacity="0.1" stroke-width="10" stroke="black" stroke-opacity="0.1"/>
83 <rect id="r61" x="50" width="30" height="30" fill="none" stroke-width="10" stroke="none" fill-opacity=".3" stroke-opacity=".3" pointer-events="painted"/>
84 <rect x="100" width="30" height="30" fill="blue" fill-opacity="0.1" stroke-width="10" stroke="blue" stroke-opacity="0.1"/>
85 <rect id="r62" x="100" width="30" height="30" fill="blue" stroke-width="10" stroke="blue" fill-opacity="0" stroke-opacity="0" pointer-events="painted"/>
86 <rect x="145" y="-5" width="40" height="40" fill="none" stroke-width="1" stroke="blue" stroke-dasharray="3,3" stroke-opacity=".5"/>
87 <rect x="150" width="30" height="30" fill="none" stroke-width="1" stroke="blue" stroke-dasharray="1,1"/>
88 <rect x="155" y="5" width="20" height="20" fill="none" stroke-width="1" stroke="blue" stroke-dasharray="3,3" stroke-opacity=".5"/>
89 <rect id="r63" x="150" width="30" height="30" fill="blue" stroke-width="10" stroke="blue" visibility="hidden" pointer-events="painted"/>
90 <g font-size="12">
91 <text x="200" y="15">painted : </text>
92 <text x="200" y="30" fill="#777">fill and stroke of rects 1, 3 and 4 must trigger</text>
93 </g>
94 </g>
95 <g transform="translate(25, 100)">
96 <rect x="-10" y="-10" width="200" height="50" fill="red" fill-opacity="0">
97 <set attributeName="fill-opacity" to="0.4" begin="r70.mouseover"/>
98 <set attributeName="fill-opacity" to="0" begin="r70.mouseout"/>
99 <set attributeName="fill-opacity" to="0.4" begin="r71.mouseover"/>
100 <set attributeName="fill-opacity" to="0" begin="r71.mouseout"/>
101 <set attributeName="fill-opacity" to="0.4" begin="r72.mouseover"/>
102 <set attributeName="fill-opacity" to="0" begin="r72.mouseout"/>
103 <set attributeName="fill-opacity" to="0.4" begin="r73.mouseover"/>
104 <set attributeName="fill-opacity" to="0" begin="r73.mouseout"/>
105 </rect>
106 <rect id="r70" width="30" height="30" fill="blue" stroke-width="10" stroke="black" fill-opacity=".3" stroke-opacity=".3" pointer-events="fill"/>
107 <rect x="50" width="30" height="30" fill="blue" fill-opacity="0.1" stroke-width="10" stroke="black" stroke-opacity="0.1"/>
108 <rect id="r71" x="50" width="30" height="30" fill="none" stroke-width="10" stroke="none" fill-opacity=".3" stroke-opacity=".3" pointer-events="fill"/>
109 <rect x="100" width="30" height="30" fill="blue" fill-opacity="0.1" stroke-width="10" stroke="black" stroke-opacity="0.1"/>
110 <rect id="r72" x="100" width="30" height="30" fill="blue" stroke-width="10" stroke="black" fill-opacity="0" stroke-opacity="0" pointer-events="fill"/>
111 <rect x="145" y="-5" width="40" height="40" fill="none" stroke-width="1" stroke="black" stroke-dasharray="3,3" stroke-opacity=".5"/>
112 <rect x="150" width="30" height="30" fill="none" stroke-width="1" stroke="black" stroke-dasharray="1,1"/>
113 <rect x="155" y="5" width="20" height="20" fill="none" stroke-width="1" stroke="black" stroke-dasharray="3,3" stroke-opacity=".5"/>
114 <rect id="r73" x="150" width="30" height="30" fill="blue" stroke-width="10" stroke="black" visibility="hidden" pointer-events="fill"/>
115 <g font-size="12">
116 <text x="200" y="15">fill : </text>
117 <text x="200" y="30" fill="#777">fill of rects 1 to 4 must trigger</text>
118 </g>
119 </g>
120 <g transform="translate(25, 150)">
121 <rect x="-10" y="-10" width="200" height="50" fill="red" fill-opacity="0">
122 <set attributeName="fill-opacity" to="0.4" begin="r80.mouseover"/>
123 <set attributeName="fill-opacity" to="0" begin="r80.mouseout"/>
124 <set attributeName="fill-opacity" to="0.4" begin="r81.mouseover"/>
125 <set attributeName="fill-opacity" to="0" begin="r81.mouseout"/>
126 <set attributeName="fill-opacity" to="0.4" begin="r82.mouseover"/>
127 <set attributeName="fill-opacity" to="0" begin="r82.mouseout"/>
128 <set attributeName="fill-opacity" to="0.4" begin="r83.mouseover"/>
129 <set attributeName="fill-opacity" to="0" begin="r83.mouseout"/>
130 </rect>
131 <rect id="r80" width="30" height="30" fill="black" stroke-width="10" stroke="blue" fill-opacity=".3" stroke-opacity=".3" pointer-events="stroke"/>
132 <rect x="50" width="30" height="30" fill="black" fill-opacity="0.1" stroke-width="10" stroke="blue" stroke-opacity="0.1"/>
133 <rect id="r81" x="50" width="30" height="30" fill="none" stroke-width="10" stroke="none" fill-opacity=".3" stroke-opacity=".3" pointer-events="stroke"/>
134 <rect x="100" width="30" height="30" fill="black" fill-opacity="0.1" stroke-width="10" stroke="blue" stroke-opacity="0.1"/>
135 <rect id="r82" x="100" width="30" height="30" fill="black" stroke-width="10" stroke="blue" fill-opacity="0" stroke-opacity="0" pointer-events="stroke"/>
136 <rect x="145" y="-5" width="40" height="40" fill="none" stroke-width="1" stroke="blue" stroke-dasharray="3,3" stroke-opacity=".5"/>
137 <rect x="150" width="30" height="30" fill="none" stroke-width="1" stroke="blue" stroke-dasharray="1,1"/>
138 <rect x="155" y="5" width="20" height="20" fill="none" stroke-width="1" stroke="blue" stroke-dasharray="3,3" stroke-opacity=".5"/>
139 <rect id="r83" x="150" width="30" height="30" fill="black" stroke-width="10" stroke="blue" visibility="hidden" pointer-events="stroke"/>
140 <g font-size="12">
141 <text x="200" y="15">stroke : </text>
142 <text x="200" y="30" fill="#777">stroke of rects 1 to 4 must trigger</text>
143 </g>
144 </g>
145 <g transform="translate(25, 200)">
146 <rect x="-10" y="-10" width="200" height="50" fill="red" fill-opacity="0">
147 <set attributeName="fill-opacity" to="0.4" begin="r90.mouseover"/>
148 <set attributeName="fill-opacity" to="0" begin="r90.mouseout"/>
149 <set attributeName="fill-opacity" to="0.4" begin="r91.mouseover"/>
150 <set attributeName="fill-opacity" to="0" begin="r91.mouseout"/>
151 <set attributeName="fill-opacity" to="0.4" begin="r92.mouseover"/>
152 <set attributeName="fill-opacity" to="0" begin="r92.mouseout"/>
153 <set attributeName="fill-opacity" to="0.4" begin="r93.mouseover"/>
154 <set attributeName="fill-opacity" to="0" begin="r93.mouseout"/>
155 </rect>
156 <rect id="r90" width="30" height="30" fill="blue" stroke-width="10" stroke="blue" fill-opacity=".3" stroke-opacity=".3" pointer-events="all"/>
157 <rect x="50" width="30" height="30" fill="blue" fill-opacity="0.1" stroke-width="10" stroke="blue" stroke-opacity="0.1"/>
158 <rect id="r91" x="50" width="30" height="30" fill="none" stroke-width="10" stroke="none" fill-opacity=".3" stroke-opacity=".3" pointer-events="all"/>
159 <rect x="100" width="30" height="30" fill="blue" fill-opacity="0.1" stroke-width="10" stroke="blue" stroke-opacity="0.1"/>
160 <rect id="r92" x="100" width="30" height="30" fill="blue" stroke-width="10" stroke="blue" fill-opacity="0" stroke-opacity="0" pointer-events="all"/>
161 <rect x="145" y="-5" width="40" height="40" fill="none" stroke-width="1" stroke="blue" stroke-dasharray="3,3" stroke-opacity=".5"/>
162 <rect x="150" width="30" height="30" fill="none" stroke-width="1" stroke="blue" stroke-dasharray="1,1"/>
163 <rect x="155" y="5" width="20" height="20" fill="none" stroke-width="1" stroke="blue" stroke-dasharray="3,3" stroke-opacity=".5"/>
164 <rect id="r93" x="150" width="30" height="30" fill="blue" stroke-width="10" stroke="blue" visibility="hidden" pointer-events="all"/>
165 <g font-size="12">
166 <text x="200" y="15">all : </text>
167 <text x="200" y="30" fill="#777">stroke and fill of rects 1 to 4 must trigger</text>
168 </g>
169 </g>
170 <g transform="translate(25, 250)">
171 <rect x="-10" y="-10" width="200" height="50" fill="red" fill-opacity="0">
172 <set attributeName="fill-opacity" to="0.4" begin="r00.mouseover"/>
173 <set attributeName="fill-opacity" to="0" begin="r00.mouseout"/>
174 <set attributeName="fill-opacity" to="0.4" begin="r01.mouseover"/>
175 <set attributeName="fill-opacity" to="0" begin="r01.mouseout"/>
176 <set attributeName="fill-opacity" to="0.4" begin="r02.mouseover"/>
177 <set attributeName="fill-opacity" to="0" begin="r02.mouseout"/>
178 <set attributeName="fill-opacity" to="0.4" begin="r03.mouseover"/>
179 <set attributeName="fill-opacity" to="0" begin="r03.mouseout"/>
180 </rect>
181 <rect id="r00" width="30" height="30" fill="black" stroke-width="10" stroke="black" fill-opacity=".3" stroke-opacity=".3" pointer-events="none"/>
182 <rect x="50" width="30" height="30" fill="black" fill-opacity="0.1" stroke-width="10" stroke="black" stroke-opacity="0.1"/>
183 <rect id="r01" x="50" width="30" height="30" fill="none" stroke-width="10" stroke="none" fill-opacity=".3" stroke-opacity=".3" pointer-events="none"/>
184 <rect x="100" width="30" height="30" fill="black" fill-opacity="0.1" stroke-width="10" stroke="black" stroke-opacity="0.1"/>
185 <rect id="r02" x="100" width="30" height="30" fill="black" stroke-width="10" stroke="black" fill-opacity="0" stroke-opacity="0" pointer-events="none"/>
186 <rect x="145" y="-5" width="40" height="40" fill="none" stroke-width="1" stroke="black" stroke-dasharray="3,3" stroke-opacity=".5"/>
187 <rect x="150" width="30" height="30" fill="none" stroke-width="1" stroke="black" stroke-dasharray="1,1"/>
188 <rect x="155" y="5" width="20" height="20" fill="none" stroke-width="1" stroke="black" stroke-dasharray="3,3" stroke-opacity=".5"/>
189 <rect id="r03" x="150" width="30" height="30" fill="black" stroke-width="10" stroke="black" visibility="hidden" pointer-events="none"/>
190 <g font-size="12">
191 <text x="200" y="15">none : </text>
192 <text x="200" y="30" fill="#777">nothing is to trigger</text>
193 </g>
194 </g>
195 </g>
196 </g>
197 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
198 <text id="revision" x="10" y="340" stroke="none"
199 fill="black">$Revision: 1.2 $</text>
200 </g>
201 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
202 <!-- comment out this watermark once the test is approved
203 <g id="draft-watermark">
204 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
205 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
206 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
207 </g> -->
208 </svg>