summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/svg/interact/script-content.svg
blob: 94836f7c0331cb8a1caebacef02a75018b2b4ddb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg"
     xmlns:h="http://www.w3.org/1999/xhtml">
  <h:link rel="help" href="https://svgwg.org/svg2-draft/interact.html#ScriptElement"/>
  <h:meta name="assert" content="The script element is in the content model of all elements."/>
  <h:script src="/resources/testharness.js"/>
  <h:script src="/resources/testharnessreport.js"/>

<script>function s0() { return s1(); }</script>

<a>
  <script>function s1() { return s2(); }</script>
</a>

<g>
  <script>function s2() { return s3(); }</script>
</g>

<animate>
  <script>function s3() { return s4(); }</script>
</animate>

<animateMotion>
  <script>function s4() { return s5(); }</script>
  <mPath>
    <script>function s5() { return s6(); }</script>
  </mPath>
</animateMotion>

<animateTransform>
  <script>function s6() { return s7(); }</script>
</animateTransform>

<circle>
  <script>function s7() { return s8(); }</script>
  <clipPath>
    <script>function s8() { return s9(); }</script>
  </clipPath>
</circle>

<defs>
  <script>function s9() { return s10(); }</script>
</defs>

<desc>
  <script>function s10() { return s11(); }</script>
</desc>

<!-- Becomes https://svgwg.org/svg2-draft/struct.html#UnknownElement
     if the implementation does not support <discard> -->
<discard>
  <script>function s11() { return s12(); }</script>
</discard>

<ellipse>
  <script>function s12() { return s13(); }</script>
</ellipse>

<filter>
  <script>function s13() { return s14(); }</script>
  <feBlend>
    <script>function s14() { return s15(); }</script>
  </feBlend>
  <feColorMatrix>
    <script>function s15() { return s16(); }</script>
  </feColorMatrix>
  <feComponentTransfer>
    <script>function s16() { return s17(); }</script>
  </feComponentTransfer>
  <feComposite>
    <script>function s17() { return s18(); }</script>
  </feComposite>
  <feConvolveMatrix>
    <script>function s18() { return s19(); }</script>
  </feConvolveMatrix>
  <feDiffuseLighting>
    <script>function s19() { return s20(); }</script>
  </feDiffuseLighting>
  <feDisplacementMap>
    <script>function s20() { return s21(); }</script>
  </feDisplacementMap>
  <feDistantLight>
    <script>function s21() { return s22(); }</script>
  </feDistantLight>
  <feDropShadow>
    <script>function s22() { return s23(); }</script>
  </feDropShadow>
  <feFlood>
    <script>function s23() { return s24(); }</script>
  </feFlood>
  <feFuncA>
    <script>function s24() { return s25(); }</script>
  </feFuncA>
  <feFuncB>
    <script>function s25() { return s26(); }</script>
  </feFuncB>
  <feFuncG>
    <script>function s26() { return s27(); }</script>
  </feFuncG>
  <feFuncR>
    <script>function s27() { return s28(); }</script>
  </feFuncR>
  <feGaussianBlur>
    <script>function s28() { return s29(); }</script>
  </feGaussianBlur>
  <feImage>
    <script>function s29() { return s30(); }</script>
  </feImage>
  <feMerge>
    <script>function s30() { return s31(); }</script>
  </feMerge>
  <feMergeNode>
    <script>function s31() { return s32(); }</script>
  </feMergeNode>
  <feMorphology>
    <script>function s32() { return s33(); }</script>
  </feMorphology>
  <feOffset>
    <script>function s33() { return s34(); }</script>
  </feOffset>
  <fePointLight>
    <script>function s34() { return s35(); }</script>
  </fePointLight>
  <feSpecularLighting>
    <script>function s35() { return s36(); }</script>
  </feSpecularLighting>
  <feSpotLight>
    <script>function s36() { return s37(); }</script>
  </feSpotLight>
  <feTile>
    <script>function s37() { return s38(); }</script>
  </feTile>
  <feTurbulence>
    <script>function s38() { return s39(); }</script>
  </feTurbulence>
</filter>

<foreignObject>
  <script>function s39() { return s40(); }</script>
</foreignObject>

<g>
  <script>function s40() { return s41(); }</script>
</g>

<image>
  <script>function s41() { return s42(); }</script>
</image>

<line>
  <script>function s42() { return s43(); }</script>
</line>

<linearGradient>
  <script>function s43() { return s44(); }</script>
</linearGradient>

<marker>
  <script>function s44() { return s45(); }</script>
</marker>

<mask>
  <script>function s45() { return s46(); }</script>
</mask>

<path>
  <script>function s46() { return s47(); }</script>
</path>

<pattern>
  <script>function s47() { return s48(); }</script>
</pattern>

<polygon>
  <script>function s48() { return s49(); }</script>
</polygon>

<polyline>
  <script>function s49() { return s50(); }</script>
</polyline>

<radialGradient>
  <script>function s50() { return s51(); }</script>
</radialGradient>

<rect>
  <script>function s51() { return s52(); }</script>
</rect>

<set>
  <script>function s52() { return s53(); }</script>
</set>

<stop>
  <script>function s53() { return s54(); }</script>
</stop>

<svg>
  <script>function s54() { return s55(); }</script>
</svg>

<symbol>
  <script>function s55() { return s56(); }</script>
</symbol>

<text>
  <script>function s56() { return s57(); }</script>
</text>

<textPath>
  <script>function s57() { return s58(); }</script>
</textPath>

<title>
  <script>function s58() { return s59(); }</script>
</title>

<tspan>
  <script>function s59() { return s60(); }</script>
</tspan>

<use>
  <script>function s60() { return s61(); }</script>
</use>

<view>
  <script>function s61() { return s62(); }</script>
</view>

<script>
function s62() {
  return 'success';
}

test(function(){
  assert_equals(s0(), 'success');
}, "script element is in elements' content model");
</script>
</svg>