Debian Codegraph @

test_non_regression/fail/na/animation/animate-interact-pevents-03-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-03-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 'visible' 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 (most right column) has a non activatable pointer event as the visibility of the column
19 is set to hidden.
20 </p>
21 <p>
22 The first row tests the default value for pointer-event, i.e. visible fill and stroke will trigger an event.
23 The second row tests pointer-events="visiblePainted", i.e. visible fill and stroke will trigger an event.
24 The third row tests pointer-events="visibleFill", i.e. visible fill only an event.
25 The fourth row tests pointer-events="visibleStroke", i.e. visible stroke only an event.
26 The fifth row tests pointer-events="visible", i.e. visible fill and stroke will trigger an event.
27 </p>
28 </d:testDescription>
29 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
30 <p>
31 Slowly move the mouse over the rectangles in each row while checking the pass criteria.
32 </p>
33 </d:operatorScript>
34 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
35 <p>
36 The test is passed if the following conditions are met
37 </p>
38 <ul>
39 <li>In the first row of squares, the fill and stroke of squares 1 and 3 only must trigger a pale red rectangle to appear
40 over the squares on mouseover.</li>
41 <li>In the second row of squares, the fill and stroke of squares 1 and 3 only must trigger a pale red rectangle to appear
42 over the squares on mouseover.</li>
43 <li>In the third row of squares, the fill only of squares 1, 2 and 3 must trigger a pale red rectangle to appear
44 over the squares on mouseover.</li>
45 <li>In the fourth row of squares, the stroke only of squares 1, 2 and 3 must trigger a pale red rectangle to appear
46 over the squares on mouseover.</li>
47 <li>In the fifth row of squares, the fill and stroke of squares 1, 2 and 3 must trigger a pale red rectangle to appear
48 over the squares on mouseover.</li>
49 </ul>
50 </d:passCriteria>
51 </d:SVGTestCase>
52 <title id="test-title">$RCSfile: animate-interact-pevents-03-t.svg,v $</title>
53 <defs>
54 <font-face
55 font-family="SVGFreeSansASCII"
56 unicode-range="U+0-7F">
57 <font-face-src>
58 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
59 </font-face-src>
60 </font-face>
61 </defs>
62 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
63 <g text-anchor="middle">
64 <text id="display-title" x="240" y="25" fill="#555" font-size="12">
65 <tspan fill="black" font-size="10">Testing pointer-events</tspan> - pale RED rect should appear on mouseover.
66 </text>
67 <text id="comment-1" x="240" y="37" fill="#555" font-size="10">
68 2nd and 3rd columns represent respectively rects with no fill/stroke and transparent fill/stroke
69 </text>
70 </g>
71 <g transform="translate(0, 5)">
72 <g transform="translate(25, 50)">
73 <rect x="-10" y="-10" width="200" height="50" fill="red" fill-opacity="0">
74 <set attributeName="fill-opacity" to="0.4" begin="r10.mouseover"/>
75 <set attributeName="fill-opacity" to="0" begin="r10.mouseout"/>
76 <set attributeName="fill-opacity" to="0.4" begin="r11.mouseover"/>
77 <set attributeName="fill-opacity" to="0" begin="r11.mouseout"/>
78 <set attributeName="fill-opacity" to="0.4" begin="r12.mouseover"/>
79 <set attributeName="fill-opacity" to="0" begin="r12.mouseout"/>
80 <set attributeName="fill-opacity" to="0.4" begin="r13.mouseover"/>
81 <set attributeName="fill-opacity" to="0" begin="r13.mouseout"/>
82 </rect>
83 <rect id="r10" width="30" height="30" fill="blue" stroke-width="10" stroke="blue" fill-opacity=".3" stroke-opacity=".3"/>
84 <rect x="50" width="30" height="30" fill="black" fill-opacity="0.1" stroke-width="10" stroke="black" stroke-opacity="0.1"/>
85 <rect id="r11" x="50" width="30" height="30" fill="none" stroke-width="10" stroke="none" fill-opacity=".3" stroke-opacity=".3"/>
86 <rect x="100" width="30" height="30" fill="blue" fill-opacity="0.1" stroke-width="10" stroke="blue" stroke-opacity="0.1"/>
87 <rect id="r12" x="100" width="30" height="30" fill="blue" stroke-width="10" stroke="blue" fill-opacity="0" stroke-opacity="0"/>
88 <rect x="145" y="-5" width="40" height="40" fill="none" stroke-width="1" stroke="black" stroke-dasharray="3,3" stroke-opacity=".5"/>
89 <rect x="150" width="30" height="30" fill="none" stroke-width="1" stroke="black" stroke-dasharray="1,1"/>
90 <rect x="155" y="5" width="20" height="20" fill="none" stroke-width="1" stroke="black" stroke-dasharray="3,3" stroke-opacity=".5"/>
91 <rect id="r13" x="150" width="30" height="30" fill="black" stroke-width="10" stroke="black" visibility="hidden"/>
92 <g font-size="12">
93 <text x="200" y="15">default : </text>
94 <text x="200" y="30" fill="#777">fill and stroke of rects 1 and 3 must trigger</text>
95 </g>
96 </g>
97 <g transform="translate(25, 100)">
98 <rect x="-10" y="-10" width="200" height="50" fill="red" fill-opacity="0">
99 <set attributeName="fill-opacity" to="0.4" begin="r20.mouseover"/>
100 <set attributeName="fill-opacity" to="0" begin="r20.mouseout"/>
101 <set attributeName="fill-opacity" to="0.4" begin="r21.mouseover"/>
102 <set attributeName="fill-opacity" to="0" begin="r21.mouseout"/>
103 <set attributeName="fill-opacity" to="0.4" begin="r22.mouseover"/>
104 <set attributeName="fill-opacity" to="0" begin="r22.mouseout"/>
105 <set attributeName="fill-opacity" to="0.4" begin="r23.mouseover"/>
106 <set attributeName="fill-opacity" to="0" begin="r23.mouseout"/>
107 </rect>
108 <rect id="r20" width="30" height="30" fill="blue" stroke-width="10" stroke="blue" fill-opacity=".3" stroke-opacity=".3" pointer-events="visiblePainted"/>
109 <rect x="50" width="30" height="30" fill="black" fill-opacity="0.1" stroke-width="10" stroke="black" stroke-opacity="0.1"/>
110 <rect id="r21" x="50" width="30" height="30" fill="none" stroke-width="10" stroke="none" fill-opacity=".3" stroke-opacity=".3" pointer-events="visiblePainted"/>
111 <rect x="100" width="30" height="30" fill="blue" fill-opacity="0.1" stroke-width="10" stroke="blue" stroke-opacity="0.1"/>
112 <rect id="r22" x="100" width="30" height="30" fill="blue" stroke-width="10" stroke="blue" fill-opacity="0" stroke-opacity="0" pointer-events="visiblePainted"/>
113 <rect x="145" y="-5" width="40" height="40" fill="none" stroke-width="1" stroke="black" stroke-dasharray="3,3" stroke-opacity=".5"/>
114 <rect x="150" width="30" height="30" fill="none" stroke-width="1" stroke="black" stroke-dasharray="1,1"/>
115 <rect x="155" y="5" width="20" height="20" fill="none" stroke-width="1" stroke="black" stroke-dasharray="3,3" stroke-opacity=".5"/>
116 <rect id="r23" x="150" width="30" height="30" fill="black" stroke-width="10" stroke="black" visibility="hidden" pointer-events="visiblePainted"/>
117 <g font-size="12">
118 <text x="200" y="15">visiblePainted : </text>
119 <text x="200" y="30" fill="#777">fill and stroke of rects 1 and 3 must trigger</text>
120 </g>
121 </g>
122 <g transform="translate(25, 150)">
123 <rect x="-10" y="-10" width="200" height="50" fill="red" fill-opacity="0">
124 <set attributeName="fill-opacity" to="0.4" begin="r30.mouseover"/>
125 <set attributeName="fill-opacity" to="0" begin="r30.mouseout"/>
126 <set attributeName="fill-opacity" to="0.4" begin="r31.mouseover"/>
127 <set attributeName="fill-opacity" to="0" begin="r31.mouseout"/>
128 <set attributeName="fill-opacity" to="0.4" begin="r32.mouseover"/>
129 <set attributeName="fill-opacity" to="0" begin="r32.mouseout"/>
130 <set attributeName="fill-opacity" to="0.4" begin="r33.mouseover"/>
131 <set attributeName="fill-opacity" to="0" begin="r33.mouseout"/>
132 </rect>
133 <rect id="r30" width="30" height="30" fill="blue" stroke-width="10" stroke="black" fill-opacity=".3" stroke-opacity=".3" pointer-events="visibleFill"/>
134
135 <rect x="50" width="30" height="30" fill="blue" fill-opacity="0.1" stroke-width="10" stroke="black" stroke-opacity="0.1"/>
136 <rect id="r31" x="50" width="30" height="30" fill="none" stroke-width="10" stroke="none" fill-opacity=".3" stroke-opacity=".3" pointer-events="visibleFill"/>
137
138 <rect x="100" width="30" height="30" fill="blue" fill-opacity="0.1" stroke-width="10" stroke="black" stroke-opacity="0.1"/>
139 <rect id="r32" x="100" width="30" height="30" fill="blue" stroke-width="10" stroke="black" fill-opacity="0" stroke-opacity="0" pointer-events="visibleFill"/>
140
141 <rect x="145" y="-5" width="40" height="40" fill="none" stroke-width="1" stroke="black" stroke-dasharray="3,3" stroke-opacity=".5"/>
142 <rect x="150" width="30" height="30" fill="none" stroke-width="1" stroke="black" stroke-dasharray="1,1"/>
143 <rect x="155" y="5" width="20" height="20" fill="none" stroke-width="1" stroke="black" stroke-dasharray="3,3" stroke-opacity=".5"/>
144 <rect id="r33" x="150" width="30" height="30" fill="black" stroke-width="10" stroke="black" visibility="hidden" pointer-events="visibleFill"/>
145 <g font-size="12">
146 <text x="200" y="15">visibleFill : </text>
147 <text x="200" y="30" fill="#777">only fill of rects 1, 2 and 3 must trigger</text>
148 </g>
149 </g>
150 <g transform="translate(25, 200)">
151 <rect x="-10" y="-10" width="200" height="50" fill="red" fill-opacity="0">
152 <set attributeName="fill-opacity" to="0.4" begin="r40.mouseover"/>
153 <set attributeName="fill-opacity" to="0" begin="r40.mouseout"/>
154 <set attributeName="fill-opacity" to="0.4" begin="r41.mouseover"/>
155 <set attributeName="fill-opacity" to="0" begin="r41.mouseout"/>
156 <set attributeName="fill-opacity" to="0.4" begin="r42.mouseover"/>
157 <set attributeName="fill-opacity" to="0" begin="r42.mouseout"/>
158 <set attributeName="fill-opacity" to="0.4" begin="r43.mouseover"/>
159 <set attributeName="fill-opacity" to="0" begin="r43.mouseout"/>
160 </rect>
161 <rect id="r40" width="30" height="30" fill="black" stroke-width="10" stroke="blue" fill-opacity=".3" stroke-opacity=".3" pointer-events="visibleStroke"/>
162
163 <rect x="50" width="30" height="30" fill="black" fill-opacity="0.1" stroke-width="10" stroke="blue" stroke-opacity="0.1"/>
164 <rect id="r41" x="50" width="30" height="30" fill="none" stroke-width="10" stroke="none" fill-opacity=".3" stroke-opacity=".3" pointer-events="visibleStroke"/>
165
166 <rect x="100" width="30" height="30" fill="black" fill-opacity="0.1" stroke-width="10" stroke="blue" stroke-opacity="0.1"/>
167 <rect id="r42" x="100" width="30" height="30" fill="black" stroke-width="10" stroke="blue" fill-opacity="0" stroke-opacity="0" pointer-events="visibleStroke"/>
168
169 <rect x="145" y="-5" width="40" height="40" fill="none" stroke-width="1" stroke="black" stroke-dasharray="3,3" stroke-opacity=".5"/>
170 <rect x="150" width="30" height="30" fill="none" stroke-width="1" stroke="black" stroke-dasharray="1,1"/>
171 <rect x="155" y="5" width="20" height="20" fill="none" stroke-width="1" stroke="black" stroke-dasharray="3,3" stroke-opacity=".5"/>
172 <rect id="r43" x="150" width="30" height="30" fill="black" stroke-width="10" stroke="black" visibility="hidden" pointer-events="visibleStroke"/>
173 <g font-size="12">
174 <text x="200" y="15">visibleStroke : </text>
175 <text x="200" y="30" fill="#777">only stroke of rects 1, 2 and 3 must trigger</text>
176 </g>
177 </g>
178 <g transform="translate(25, 250)">
179 <rect x="-10" y="-10" width="200" height="50" fill="red" fill-opacity="0">
180 <set attributeName="fill-opacity" to="0.4" begin="r50.mouseover"/>
181 <set attributeName="fill-opacity" to="0" begin="r50.mouseout"/>
182 <set attributeName="fill-opacity" to="0.4" begin="r51.mouseover"/>
183 <set attributeName="fill-opacity" to="0" begin="r51.mouseout"/>
184 <set attributeName="fill-opacity" to="0.4" begin="r52.mouseover"/>
185 <set attributeName="fill-opacity" to="0" begin="r52.mouseout"/>
186 <set attributeName="fill-opacity" to="0.4" begin="r53.mouseover"/>
187 <set attributeName="fill-opacity" to="0" begin="r53.mouseout"/>
188 </rect>
189 <rect id="r50" width="30" height="30" fill="blue" stroke-width="10" stroke="blue" fill-opacity=".3" stroke-opacity=".3" pointer-events="visible"/>
190
191 <rect x="50" width="30" height="30" fill="blue" fill-opacity="0.1" stroke-width="10" stroke="blue" stroke-opacity="0.1"/>
192 <rect id="r51" x="50" width="30" height="30" fill="none" stroke-width="10" stroke="none" fill-opacity=".3" stroke-opacity=".3" pointer-events="visible"/>
193
194 <rect x="100" width="30" height="30" fill="blue" fill-opacity="0.1" stroke-width="10" stroke="blue" stroke-opacity="0.1"/>
195 <rect id="r52" x="100" width="30" height="30" fill="blue" stroke-width="10" stroke="blue" fill-opacity="0" stroke-opacity="0" pointer-events="visible"/>
196
197 <rect x="145" y="-5" width="40" height="40" fill="none" stroke-width="1" stroke="black" stroke-dasharray="3,3" stroke-opacity=".5"/>
198 <rect x="150" width="30" height="30" fill="none" stroke-width="1" stroke="black" stroke-dasharray="1,1"/>
199 <rect x="155" y="5" width="20" height="20" fill="none" stroke-width="1" stroke="black" stroke-dasharray="3,3" stroke-opacity=".5"/>
200 <rect id="r53" x="150" width="30" height="30" fill="black" stroke-width="10" stroke="black" visibility="hidden" pointer-events="visible"/>
201 <g font-size="12">
202 <text x="200" y="15">visible : </text>
203 <text x="200" y="30" fill="#777">fill and stroke of rects 1, 2 and 3 must trigger</text>
204 </g>
205 </g>
206 </g>
207 </g>
208 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
209 <text id="revision" x="10" y="340" stroke="none"
210 fill="black">$Revision: 1.2 $</text>
211 </g>
212 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
213 <!-- comment out this watermark once the test is approved
214 <g id="draft-watermark">
215 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
216 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
217 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
218 </g> -->
219 </svg>