@markuplint/html-spec 3.0.0-dev.24 → 3.0.0-dev.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/package.json +3 -3
  2. package/src/spec-common.attributes.json +0 -1650
  3. package/src/spec-common.contents.json +0 -392
  4. package/src/spec.a.json +0 -58
  5. package/src/spec.abbr.json +0 -25
  6. package/src/spec.address.json +0 -25
  7. package/src/spec.area.json +0 -64
  8. package/src/spec.article.json +0 -24
  9. package/src/spec.aside.json +0 -38
  10. package/src/spec.audio.json +0 -48
  11. package/src/spec.b.json +0 -24
  12. package/src/spec.base.json +0 -21
  13. package/src/spec.bdi.json +0 -24
  14. package/src/spec.bdo.json +0 -24
  15. package/src/spec.blockquote.json +0 -31
  16. package/src/spec.body.json +0 -100
  17. package/src/spec.br.json +0 -32
  18. package/src/spec.button.json +0 -70
  19. package/src/spec.canvas.json +0 -33
  20. package/src/spec.caption.json +0 -30
  21. package/src/spec.cite.json +0 -24
  22. package/src/spec.code.json +0 -27
  23. package/src/spec.col.json +0 -31
  24. package/src/spec.colgroup.json +0 -41
  25. package/src/spec.data.json +0 -29
  26. package/src/spec.datalist.json +0 -38
  27. package/src/spec.dd.json +0 -30
  28. package/src/spec.del.json +0 -36
  29. package/src/spec.details.json +0 -35
  30. package/src/spec.dfn.json +0 -23
  31. package/src/spec.dialog.json +0 -36
  32. package/src/spec.div.json +0 -55
  33. package/src/spec.dl.json +0 -56
  34. package/src/spec.dt.json +0 -26
  35. package/src/spec.em.json +0 -27
  36. package/src/spec.embed.json +0 -30
  37. package/src/spec.fieldset.json +0 -27
  38. package/src/spec.figcaption.json +0 -24
  39. package/src/spec.figure.json +0 -52
  40. package/src/spec.footer.json +0 -37
  41. package/src/spec.form.json +0 -100
  42. package/src/spec.h1.json +0 -26
  43. package/src/spec.h2.json +0 -26
  44. package/src/spec.h3.json +0 -26
  45. package/src/spec.h4.json +0 -26
  46. package/src/spec.h5.json +0 -26
  47. package/src/spec.h6.json +0 -26
  48. package/src/spec.head.json +0 -30
  49. package/src/spec.header.json +0 -37
  50. package/src/spec.hgroup.json +0 -45
  51. package/src/spec.hr.json +0 -23
  52. package/src/spec.html.json +0 -27
  53. package/src/spec.i.json +0 -24
  54. package/src/spec.iframe.json +0 -70
  55. package/src/spec.img.json +0 -109
  56. package/src/spec.input.json +0 -792
  57. package/src/spec.ins.json +0 -36
  58. package/src/spec.kbd.json +0 -24
  59. package/src/spec.label.json +0 -29
  60. package/src/spec.legend.json +0 -24
  61. package/src/spec.li.json +0 -40
  62. package/src/spec.link.json +0 -140
  63. package/src/spec.main.json +0 -27
  64. package/src/spec.map.json +0 -30
  65. package/src/spec.mark.json +0 -24
  66. package/src/spec.math.json +0 -20
  67. package/src/spec.menu.json +0 -53
  68. package/src/spec.meta.json +0 -59
  69. package/src/spec.meter.json +0 -62
  70. package/src/spec.nav.json +0 -26
  71. package/src/spec.noscript.json +0 -24
  72. package/src/spec.object.json +0 -40
  73. package/src/spec.ol.json +0 -71
  74. package/src/spec.optgroup.json +0 -34
  75. package/src/spec.option.json +0 -70
  76. package/src/spec.output.json +0 -29
  77. package/src/spec.p.json +0 -27
  78. package/src/spec.picture.json +0 -46
  79. package/src/spec.portal.json +0 -25
  80. package/src/spec.pre.json +0 -24
  81. package/src/spec.progress.json +0 -44
  82. package/src/spec.q.json +0 -29
  83. package/src/spec.rp.json +0 -23
  84. package/src/spec.rt.json +0 -24
  85. package/src/spec.ruby.json +0 -55
  86. package/src/spec.s.json +0 -24
  87. package/src/spec.samp.json +0 -24
  88. package/src/spec.script.json +0 -73
  89. package/src/spec.section.json +0 -73
  90. package/src/spec.select.json +0 -66
  91. package/src/spec.slot.json +0 -29
  92. package/src/spec.small.json +0 -24
  93. package/src/spec.source.json +0 -52
  94. package/src/spec.span.json +0 -24
  95. package/src/spec.strong.json +0 -27
  96. package/src/spec.style.json +0 -35
  97. package/src/spec.sub.json +0 -27
  98. package/src/spec.summary.json +0 -38
  99. package/src/spec.sup.json +0 -27
  100. package/src/spec.svg_a.json +0 -118
  101. package/src/spec.svg_animate.json +0 -109
  102. package/src/spec.svg_animateMotion.json +0 -73
  103. package/src/spec.svg_animateTransform.json +0 -47
  104. package/src/spec.svg_circle.json +0 -113
  105. package/src/spec.svg_clipPath.json +0 -108
  106. package/src/spec.svg_defs.json +0 -109
  107. package/src/spec.svg_desc.json +0 -21
  108. package/src/spec.svg_discard.json +0 -31
  109. package/src/spec.svg_ellipse.json +0 -116
  110. package/src/spec.svg_feBlend.json +0 -115
  111. package/src/spec.svg_feColorMatrix.json +0 -104
  112. package/src/spec.svg_feComponentTransfer.json +0 -97
  113. package/src/spec.svg_feComposite.json +0 -146
  114. package/src/spec.svg_feConvolveMatrix.json +0 -147
  115. package/src/spec.svg_feDiffuseLighting.json +0 -126
  116. package/src/spec.svg_feDisplacementMap.json +0 -133
  117. package/src/spec.svg_feDistantLight.json +0 -32
  118. package/src/spec.svg_feDropShadow.json +0 -109
  119. package/src/spec.svg_feFlood.json +0 -101
  120. package/src/spec.svg_feFuncA.json +0 -20
  121. package/src/spec.svg_feFuncB.json +0 -20
  122. package/src/spec.svg_feFuncG.json +0 -20
  123. package/src/spec.svg_feFuncR.json +0 -20
  124. package/src/spec.svg_feGaussianBlur.json +0 -105
  125. package/src/spec.svg_feImage.json +0 -123
  126. package/src/spec.svg_feMerge.json +0 -90
  127. package/src/spec.svg_feMergeNode.json +0 -20
  128. package/src/spec.svg_feMorphology.json +0 -106
  129. package/src/spec.svg_feOffset.json +0 -103
  130. package/src/spec.svg_fePointLight.json +0 -38
  131. package/src/spec.svg_feSpecularLighting.json +0 -131
  132. package/src/spec.svg_feSpotLight.json +0 -67
  133. package/src/spec.svg_feTile.json +0 -90
  134. package/src/spec.svg_feTurbulence.json +0 -127
  135. package/src/spec.svg_filter.json +0 -138
  136. package/src/spec.svg_foreignObject.json +0 -97
  137. package/src/spec.svg_g.json +0 -115
  138. package/src/spec.svg_image.json +0 -128
  139. package/src/spec.svg_line.json +0 -136
  140. package/src/spec.svg_linearGradient.json +0 -152
  141. package/src/spec.svg_marker.json +0 -180
  142. package/src/spec.svg_mask.json +0 -142
  143. package/src/spec.svg_metadata.json +0 -21
  144. package/src/spec.svg_mpath.json +0 -26
  145. package/src/spec.svg_path.json +0 -114
  146. package/src/spec.svg_pattern.json +0 -157
  147. package/src/spec.svg_polygon.json +0 -117
  148. package/src/spec.svg_polyline.json +0 -117
  149. package/src/spec.svg_radialGradient.json +0 -162
  150. package/src/spec.svg_rect.json +0 -118
  151. package/src/spec.svg_script.json +0 -40
  152. package/src/spec.svg_set.json +0 -42
  153. package/src/spec.svg_stop.json +0 -110
  154. package/src/spec.svg_style.json +0 -36
  155. package/src/spec.svg_svg.json +0 -170
  156. package/src/spec.svg_switch.json +0 -105
  157. package/src/spec.svg_symbol.json +0 -77
  158. package/src/spec.svg_text.json +0 -153
  159. package/src/spec.svg_textPath.json +0 -169
  160. package/src/spec.svg_title.json +0 -21
  161. package/src/spec.svg_tspan.json +0 -147
  162. package/src/spec.svg_use.json +0 -115
  163. package/src/spec.svg_view.json +0 -45
  164. package/src/spec.table.json +0 -64
  165. package/src/spec.tbody.json +0 -23
  166. package/src/spec.td.json +0 -37
  167. package/src/spec.template.json +0 -20
  168. package/src/spec.textarea.json +0 -67
  169. package/src/spec.tfoot.json +0 -23
  170. package/src/spec.th.json +0 -66
  171. package/src/spec.thead.json +0 -23
  172. package/src/spec.time.json +0 -32
  173. package/src/spec.title.json +0 -24
  174. package/src/spec.tr.json +0 -29
  175. package/src/spec.track.json +0 -54
  176. package/src/spec.u.json +0 -24
  177. package/src/spec.ul.json +0 -53
  178. package/src/spec.var.json +0 -24
  179. package/src/spec.video.json +0 -78
  180. package/src/spec.wbr.json +0 -25
  181. package/src/structure.test.ts +0 -84
@@ -1,1650 +0,0 @@
1
- {
2
- "#HTMLGlobalAttrs": {
3
- // https://html.spec.whatwg.org/multipage/interaction.html#the-accesskey-attribute
4
- "accesskey": {
5
- "type": {
6
- "token": "OneCodePointChar",
7
- "ordered": true,
8
- "unique": true,
9
- "number": "zeroOrMore",
10
- "separator": "space"
11
- }
12
- },
13
- // https://html.spec.whatwg.org/multipage/interaction.html#attr-autocapitalize
14
- "autocapitalize": {
15
- "type": {
16
- "enum": ["off", "on", "none", "sentences", "words", "characters"],
17
- "disallowToSurroundBySpaces": true,
18
- "invalidValueDefault": "sentences",
19
- "missingValueDefault": "default",
20
- "sameStates": {
21
- "none": ["off"],
22
- "sentences": ["on"]
23
- }
24
- }
25
- },
26
- // https://html.spec.whatwg.org/multipage/interaction.html#attr-fe-autofocus
27
- "autofocus": {
28
- "type": "Boolean"
29
- },
30
- // https://html.spec.whatwg.org/multipage/interaction.html#attr-contenteditable
31
- "contenteditable": {
32
- "type": {
33
- "enum": ["", "true", "false"],
34
- "disallowToSurroundBySpaces": true,
35
- "invalidValueDefault": "inherit",
36
- "missingValueDefault": "inherit",
37
- "sameStates": {
38
- "true": [""]
39
- }
40
- }
41
- },
42
- // https://html.spec.whatwg.org/multipage/dom.html#attr-dir
43
- "dir": {
44
- "type": {
45
- "enum": ["ltr", "rtl", "auto"]
46
- }
47
- },
48
- // https://html.spec.whatwg.org/multipage/dnd.html#attr-draggable
49
- "draggable": {
50
- "type": {
51
- "enum": ["true", "false"],
52
- "invalidValueDefault": "auto",
53
- "missingValueDefault": "auto"
54
- }
55
- },
56
- // https://html.spec.whatwg.org/multipage/interaction.html#attr-enterkeyhint
57
- "enterkeyhint": {
58
- "type": {
59
- "enum": ["enter", "done", "go", "next", "previous", "search", "send"]
60
- }
61
- },
62
- // https://html.spec.whatwg.org/multipage/interaction.html#attr-hidden
63
- "hidden": {
64
- "type": {
65
- "enum": ["", "hidden", "until-found"]
66
- }
67
- },
68
- // https://html.spec.whatwg.org/multipage/interaction.html#the-inert-attribute
69
- "inert": {
70
- "type": "Boolean"
71
- },
72
- // https://html.spec.whatwg.org/multipage/interaction.html#attr-inputmode
73
- "inputmode": {
74
- "type": {
75
- "enum": ["none", "text", "tel", "url", "email", "numeric", "decimal", "search"]
76
- }
77
- },
78
- // https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is
79
- "is": {
80
- "type": "CustomElementName"
81
- },
82
- // https://html.spec.whatwg.org/multipage/microdata.html#attr-itemid
83
- "itemid": {
84
- "type": "URL"
85
- },
86
- // https://html.spec.whatwg.org/multipage/microdata.html#names:-the-itemprop-attribute
87
- "itemprop": {
88
- "type": {
89
- "token": "ItemProp",
90
- "ordered": false,
91
- "unique": true,
92
- "separator": "space"
93
- }
94
- },
95
- // https://html.spec.whatwg.org/multipage/microdata.html#attr-itemref
96
- "itemref": {
97
- "type": {
98
- "token": "DOMID",
99
- "separator": "space"
100
- },
101
- "condition": "[itemscope]"
102
- },
103
- // https://html.spec.whatwg.org/multipage/microdata.html#attr-itemscope
104
- "itemscope": {
105
- "type": "Boolean"
106
- },
107
- // https://html.spec.whatwg.org/multipage/microdata.html#attr-itemtype
108
- "itemtype": {
109
- "type": {
110
- "token": "AbsoluteURL",
111
- "ordered": false,
112
- "unique": true,
113
- "separator": "space"
114
- }
115
- },
116
- // https://html.spec.whatwg.org/multipage/dom.html#attr-lang
117
- "lang": {
118
- "type": "BCP47"
119
- },
120
- // https://html.spec.whatwg.org/multipage/urls-and-fetching.html#attr-nonce
121
- "nonce": {
122
- "type": "Any"
123
- },
124
- // https://html.spec.whatwg.org/multipage/interaction.html#attr-spellcheck
125
- "spellcheck": {
126
- "type": {
127
- "enum": ["", "true", "false"],
128
- "disallowToSurroundBySpaces": true,
129
- "invalidValueDefault": "default",
130
- "missingValueDefault": "default",
131
- "sameStates": {
132
- "true": [""]
133
- }
134
- }
135
- },
136
- // https://html.spec.whatwg.org/multipage/dom.html#attr-style
137
- "style": {
138
- "type": "<css-declaration-list>"
139
- },
140
- // https://html.spec.whatwg.org/multipage/interaction.html#attr-tabindex
141
- "tabindex": {
142
- "type": "TabIndex"
143
- },
144
- // https://html.spec.whatwg.org/multipage/dom.html#attr-title
145
- "title": {
146
- "type": "Any"
147
- },
148
- // https://html.spec.whatwg.org/multipage/dom.html#attr-translate
149
- "translate": {
150
- "type": {
151
- "enum": ["", "yes", "no"],
152
- "disallowToSurroundBySpaces": true,
153
- "invalidValueDefault": "inherit",
154
- "missingValueDefault": "inherit",
155
- "sameStates": {
156
- "yes": [""]
157
- }
158
- }
159
- },
160
- // https://html.spec.whatwg.org/multipage/dom.html#classes
161
- "class": {
162
- "type": "Any"
163
- },
164
- // https://html.spec.whatwg.org/multipage/dom.html#the-id-attribute
165
- "id": {
166
- "type": "DOMID"
167
- },
168
- // https://html.spec.whatwg.org/multipage/dom.html#attr-slot
169
- "slot": {
170
- "type": "NoEmptyAny"
171
- },
172
- // https://html.spec.whatwg.org/multipage/dom.html#global-attributes:html-documents
173
- "xmlns": {
174
- "type": "URL",
175
- "ineffective": "*"
176
- },
177
- // https://html.spec.whatwg.org/multipage/dom.html#the-lang-and-xml:lang-attributes
178
- "xml:lang": {
179
- "type": "BCP47",
180
- "deprecated": true
181
- },
182
- // https://html.spec.whatwg.org/multipage/dom.html#global-attributes:attr-xml-space
183
- "xml:space": {
184
- "type": {
185
- "enum": ["default", "preserve"]
186
- },
187
- "defaultValue": "default",
188
- "deprecated": true
189
- }
190
- },
191
- "#GlobalEventAttrs": {
192
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onabort
193
- "onabort": {
194
- "type": "FunctionBody"
195
- },
196
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onabort
197
- "onauxclick": {
198
- "type": "FunctionBody"
199
- },
200
- // https://w3c.github.io/uievents/#beforeinput
201
- "onbeforeinput": {
202
- "type": "FunctionBody"
203
- },
204
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onbeforematch
205
- "onbeforematch": {
206
- "type": "FunctionBody"
207
- },
208
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onabort
209
- "onblur": {
210
- "type": "FunctionBody"
211
- },
212
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-oncancel
213
- "oncancel": {
214
- "type": "FunctionBody"
215
- },
216
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-oncanplay
217
- "oncanplay": {
218
- "type": "FunctionBody"
219
- },
220
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-oncanplaythrough
221
- "oncanplaythrough": {
222
- "type": "FunctionBody"
223
- },
224
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onchange
225
- "onchange": {
226
- "type": "FunctionBody"
227
- },
228
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onclick
229
- "onclick": {
230
- "type": "FunctionBody"
231
- },
232
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onclose
233
- "onclose": {
234
- "type": "FunctionBody"
235
- },
236
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-oncontextlost
237
- "oncontextlost": {
238
- "type": "FunctionBody"
239
- },
240
- // https://w3c.github.io/uievents/#compositionstart
241
- "oncompositionstart": {
242
- "type": "FunctionBody"
243
- },
244
- // https://w3c.github.io/uievents/#compositionupdate
245
- "oncompositionupdate": {
246
- "type": "FunctionBody"
247
- },
248
- // https://w3c.github.io/uievents/#compositionend
249
- "oncompositionend": {
250
- "type": "FunctionBody"
251
- },
252
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-oncontextmenu
253
- "oncontextmenu": {
254
- "type": "FunctionBody"
255
- },
256
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-oncontextrestored
257
- "oncontextrestored": {
258
- "type": "FunctionBody"
259
- },
260
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-oncuechange
261
- "oncuechange": {
262
- "type": "FunctionBody"
263
- },
264
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-ondblclick
265
- "ondblclick": {
266
- "type": "FunctionBody"
267
- },
268
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-ondrag
269
- "ondrag": {
270
- "type": "FunctionBody"
271
- },
272
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-ondragend
273
- "ondragend": {
274
- "type": "FunctionBody"
275
- },
276
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-ondragenter
277
- "ondragenter": {
278
- "type": "FunctionBody"
279
- },
280
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-ondragleave
281
- "ondragleave": {
282
- "type": "FunctionBody"
283
- },
284
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-ondragover
285
- "ondragover": {
286
- "type": "FunctionBody"
287
- },
288
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-ondragstart
289
- "ondragstart": {
290
- "type": "FunctionBody"
291
- },
292
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-ondrop
293
- "ondrop": {
294
- "type": "FunctionBody"
295
- },
296
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-ondurationchange
297
- "ondurationchange": {
298
- "type": "FunctionBody"
299
- },
300
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onemptied
301
- "onemptied": {
302
- "type": "FunctionBody"
303
- },
304
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onended
305
- "onended": {
306
- "type": "FunctionBody"
307
- },
308
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onerror
309
- "onerror": {
310
- "type": "FunctionBody"
311
- },
312
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onfocus
313
- "onfocus": {
314
- "type": "FunctionBody"
315
- },
316
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onformdata
317
- "onformdata": {
318
- "type": "FunctionBody"
319
- },
320
- // https://w3c.github.io/uievents/#focusin
321
- "onfocusin": {
322
- "type": "FunctionBody"
323
- },
324
- // https://w3c.github.io/uievents/#focusout
325
- "onfocusout": {
326
- "type": "FunctionBody"
327
- },
328
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-oninput
329
- "oninput": {
330
- "type": "FunctionBody"
331
- },
332
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-oninvalid
333
- "oninvalid": {
334
- "type": "FunctionBody"
335
- },
336
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onkeydown
337
- "onkeydown": {
338
- "type": "FunctionBody"
339
- },
340
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onkeypress
341
- "onkeypress": {
342
- "type": "FunctionBody"
343
- },
344
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onkeyup
345
- "onkeyup": {
346
- "type": "FunctionBody"
347
- },
348
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onload
349
- "onload": {
350
- "type": "FunctionBody"
351
- },
352
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onloadeddata
353
- "onloadeddata": {
354
- "type": "FunctionBody"
355
- },
356
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onloadedmetadata
357
- "onloadedmetadata": {
358
- "type": "FunctionBody"
359
- },
360
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onloadstart
361
- "onloadstart": {
362
- "type": "FunctionBody"
363
- },
364
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onmousedown
365
- "onmousedown": {
366
- "type": "FunctionBody"
367
- },
368
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onmouseenter
369
- "onmouseenter": {
370
- "type": "FunctionBody"
371
- },
372
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onmouseleave
373
- "onmouseleave": {
374
- "type": "FunctionBody"
375
- },
376
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onmousemove
377
- "onmousemove": {
378
- "type": "FunctionBody"
379
- },
380
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onmouseout
381
- "onmouseout": {
382
- "type": "FunctionBody"
383
- },
384
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onmouseover
385
- "onmouseover": {
386
- "type": "FunctionBody"
387
- },
388
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onmouseup
389
- "onmouseup": {
390
- "type": "FunctionBody"
391
- },
392
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onpause
393
- "onpause": {
394
- "type": "FunctionBody"
395
- },
396
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onplay
397
- "onplay": {
398
- "type": "FunctionBody"
399
- },
400
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onplaying
401
- "onplaying": {
402
- "type": "FunctionBody"
403
- },
404
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onprogress
405
- "onprogress": {
406
- "type": "FunctionBody"
407
- },
408
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onratechange
409
- "onratechange": {
410
- "type": "FunctionBody"
411
- },
412
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onreset
413
- "onreset": {
414
- "type": "FunctionBody"
415
- },
416
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onresize
417
- "onresize": {
418
- "type": "FunctionBody"
419
- },
420
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onscroll
421
- "onscroll": {
422
- "type": "FunctionBody"
423
- },
424
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onsecuritypolicyviolation
425
- "onsecuritypolicyviolation": {
426
- "type": "FunctionBody"
427
- },
428
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onseeked
429
- "onseeked": {
430
- "type": "FunctionBody"
431
- },
432
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onseeking
433
- "onseeking": {
434
- "type": "FunctionBody"
435
- },
436
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onselect
437
- "onselect": {
438
- "type": "FunctionBody"
439
- },
440
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onslotchange
441
- "onslotchange": {
442
- "type": "FunctionBody"
443
- },
444
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onstalled
445
- "onstalled": {
446
- "type": "FunctionBody"
447
- },
448
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onsubmit
449
- "onsubmit": {
450
- "type": "FunctionBody"
451
- },
452
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onsuspend
453
- "onsuspend": {
454
- "type": "FunctionBody"
455
- },
456
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-ontimeupdate
457
- "ontimeupdate": {
458
- "type": "FunctionBody"
459
- },
460
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-ontoggle
461
- "ontoggle": {
462
- "type": "FunctionBody"
463
- },
464
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onvolumechange
465
- "onvolumechange": {
466
- "type": "FunctionBody"
467
- },
468
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onwaiting
469
- "onwaiting": {
470
- "type": "FunctionBody"
471
- },
472
- // https://w3c.github.io/uievents/#unload
473
- "onunload": {
474
- "type": "FunctionBody"
475
- },
476
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onwheel
477
- "onwheel": {
478
- "type": "FunctionBody"
479
- },
480
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onwebkitanimationend
481
- "onwebkitanimationend": {
482
- "type": "FunctionBody",
483
- "deprecated": true
484
- },
485
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onwebkitanimationiteration
486
- "onwebkitanimationiteration": {
487
- "type": "FunctionBody",
488
- "deprecated": true
489
- },
490
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onwebkitanimationstart
491
- "onwebkitanimationstart": {
492
- "type": "FunctionBody",
493
- "deprecated": true
494
- },
495
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onwebkittransitionend
496
- "onwebkittransitionend": {
497
- "type": "FunctionBody",
498
- "deprecated": true
499
- }
500
- },
501
- "#DocumentElementEventAttrs": {
502
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-oncopy
503
- "oncopy": {
504
- "type": "FunctionBody"
505
- },
506
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-oncut
507
- "oncut": {
508
- "type": "FunctionBody"
509
- },
510
- // https://html.spec.whatwg.org/multipage/webappapis.html#handler-onpaste
511
- "onpaste": {
512
- "type": "FunctionBody"
513
- }
514
- },
515
- "#HTMLLinkAndFetchingAttrs": {
516
- // https://html.spec.whatwg.org/multipage/links.html#attr-hyperlink-href
517
- "href": {
518
- "type": "URL"
519
- },
520
- // https://html.spec.whatwg.org/multipage/links.html#attr-hyperlink-target
521
- "target": {
522
- "type": "BrowsingContextNameOrKeyword",
523
- "condition": "[href]"
524
- },
525
- // https://html.spec.whatwg.org/multipage/links.html#attr-hyperlink-download
526
- "download": {
527
- "type": "Any",
528
- "condition": "[href]"
529
- },
530
- // https://html.spec.whatwg.org/multipage/links.html#ping
531
- "ping": {
532
- "type": {
533
- "token": "HTTPSchemaURL",
534
- "separator": "space"
535
- },
536
- "condition": "[href]"
537
- },
538
- // https://html.spec.whatwg.org/multipage/links.html#attr-hyperlink-rel
539
- "rel": {
540
- "type": {
541
- "token": {
542
- "enum": [
543
- "alternate",
544
- "author",
545
- "bookmark",
546
- "external",
547
- "help",
548
- "license",
549
- "next",
550
- "nofollow",
551
- "noopener",
552
- "noreferrer",
553
- "opener",
554
- "prev",
555
- "search",
556
- "tag"
557
- ]
558
- },
559
- "unique": true,
560
- "separator": "space"
561
- },
562
- "condition": "[href]"
563
- },
564
- // https://html.spec.whatwg.org/multipage/links.html#attr-hyperlink-hreflang
565
- "hreflang": {
566
- "type": "BCP47",
567
- "condition": "[href]"
568
- },
569
- // https://html.spec.whatwg.org/multipage/links.html#attr-hyperlink-type
570
- "type": {
571
- "type": "MIMEType",
572
- "condition": "[href]"
573
- },
574
- // https://html.spec.whatwg.org/multipage/urls-and-fetching.html#referrer-policy-attribute
575
- "referrerpolicy": {
576
- "type": {
577
- "enum": [
578
- "",
579
- "no-referrer",
580
- "no-referrer-when-downgrade",
581
- "same-origin",
582
- "origin",
583
- "strict-origin",
584
- "origin-when-cross-origin",
585
- "strict-origin-when-cross-origin",
586
- "unsafe-url"
587
- ]
588
- },
589
- "condition": "[href]",
590
- "defaultValue": "strict-origin-when-cross-origin"
591
- },
592
- // https://html.spec.whatwg.org/multipage/urls-and-fetching.html#lazy-loading-attribute
593
- "loading": {
594
- "type": {
595
- "enum": ["lazy", "eager"],
596
- "invalidValueDefault": "eager",
597
- "missingValueDefault": "eager"
598
- }
599
- },
600
- // https://html.spec.whatwg.org/multipage/semantics.html#attr-link-integrity
601
- "integrity": {
602
- // The type is hash-source (https://w3c.github.io/webappsec-subresource-integrity/#integrity-metadata-description)
603
- "type": "Any"
604
- },
605
- // https://html.spec.whatwg.org/multipage/semantics.html#attr-link-media
606
- "media": {
607
- "type": "<media-query-list>"
608
- },
609
- // https://html.spec.whatwg.org/multipage/urls-and-fetching.html#cors-settings-attribute
610
- "crossorigin": {
611
- "type": {
612
- "enum": ["", "anonymous", "use-credentials"],
613
- "invalidValueDefault": "anonymous",
614
- "missingValueDefault": "No CORS",
615
- "sameStates": {
616
- "anonymous": [""]
617
- }
618
- }
619
- },
620
- // https://wicg.github.io/priority-hints/#solution
621
- "fetchpriority": {
622
- "type": {
623
- "enum": ["high", "low", "auto"],
624
- "invalidValueDefault": "auto",
625
- "missingValueDefault": "auto"
626
- },
627
- "experimental": true
628
- }
629
- },
630
- "#HTMLEmbededAndMediaContentAttrs": {
631
- // https://html.spec.whatwg.org/multipage/media.html#attr-media-src
632
- "src": {
633
- "type": "URL"
634
- },
635
- // https://html.spec.whatwg.org/multipage/media.html#attr-media-preload
636
- "preload": {
637
- "type": {
638
- "enum": ["none", "metadata", "auto"],
639
- "invalidValueDefault": "implementation-defined",
640
- "missingValueDefault": "implementation-defined"
641
- }
642
- },
643
- // https://html.spec.whatwg.org/multipage/media.html#attr-media-autoplay
644
- "autoplay": {
645
- "type": "Boolean"
646
- },
647
- // https://html.spec.whatwg.org/multipage/media.html#attr-media-loop
648
- "loop": {
649
- "type": "Boolean"
650
- },
651
- // https://html.spec.whatwg.org/multipage/media.html#attr-media-controls
652
- "muted": {
653
- "type": "Boolean"
654
- },
655
- // https://html.spec.whatwg.org/multipage/media.html#attr-media-muted
656
- "controls": {
657
- "type": "Boolean"
658
- },
659
- // https://html.spec.whatwg.org/multipage/embedded-content-other.html#attr-dim-height
660
- "height": {
661
- "type": "Uint"
662
- },
663
- // https://html.spec.whatwg.org/multipage/embedded-content.html#attr-source-srcset
664
- "srcset": {
665
- "type": "Srcset"
666
- },
667
- // https://html.spec.whatwg.org/multipage/embedded-content.html#attr-source-sizes
668
- "sizes": {
669
- "type": "SourceSizeList"
670
- },
671
- // https://html.spec.whatwg.org/multipage/embedded-content-other.html#attr-dim-width
672
- "width": {
673
- "type": "Uint"
674
- }
675
- },
676
- "#HTMLFormControlElementAttrs": {
677
- // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete
678
- "autocomplete": {
679
- "type": "AutoComplete"
680
- },
681
- // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-dirname
682
- "dirname": {
683
- "type": "NoEmptyAny"
684
- },
685
- // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-disabled
686
- "disabled": {
687
- "type": "Boolean"
688
- },
689
- // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fae-form
690
- "form": {
691
- "type": "DOMID"
692
- },
693
- // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formaction
694
- "formaction": {
695
- "type": "URL"
696
- },
697
- // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formenctype
698
- "formenctype": {
699
- "type": {
700
- "enum": ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"],
701
- "invalidValueDefault": "application/x-www-form-urlencoded"
702
- }
703
- },
704
- // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formmethod
705
- "formmethod": {
706
- "type": {
707
- "enum": ["post", "get", "dialog"],
708
- "invalidValueDefault": "get"
709
- }
710
- },
711
- // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formnovalidate
712
- "formnovalidate": {
713
- "type": "Boolean"
714
- },
715
- // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formtarget
716
- "formtarget": {
717
- "type": "BrowsingContextNameOrKeyword"
718
- },
719
- // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-name
720
- "name": {
721
- "type": "NoEmptyAny"
722
- },
723
- // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-maxlength
724
- "maxlength": {
725
- "type": "Uint"
726
- },
727
- // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-minlength
728
- "minlength": {
729
- "type": "Uint"
730
- },
731
- // https://html.spec.whatwg.org/multipage/input.html#attr-input-readonly
732
- "readonly": {
733
- "type": "Boolean"
734
- },
735
- // https://html.spec.whatwg.org/multipage/input.html#attr-input-required
736
- "required": {
737
- "type": "Boolean"
738
- }
739
- },
740
- "#HTMLTableCellElementAttrs": {
741
- // https://html.spec.whatwg.org/multipage/tables.html#attr-tdth-colspan
742
- "colspan": {
743
- "type": {
744
- "type": "integer",
745
- "gt": 0,
746
- "lte": 1000
747
- }
748
- },
749
- // https://html.spec.whatwg.org/multipage/tables.html#attr-tdth-rowspan
750
- "rowspan": {
751
- "type": {
752
- "type": "integer",
753
- "gt": 0,
754
- "lte": 65534
755
- }
756
- },
757
- // https://html.spec.whatwg.org/multipage/tables.html#attr-tdth-headers
758
- "headers": {
759
- "type": {
760
- "token": "DOMID",
761
- "ordered": false,
762
- "unique": true,
763
- "separator": "space"
764
- }
765
- }
766
- },
767
- "#ARIAAttrs": {
768
- // https://html.spec.whatwg.org/multipage/infrastructure.html#attr-aria-role
769
- "role": {
770
- "type": {
771
- "token": "NoEmptyAny",
772
- "separator": "space"
773
- }
774
- }
775
- },
776
- "#SVGAnimationAdditionAttrs": {
777
- // https://svgwg.org/specs/animations/#AdditiveAttribute
778
- "additive": {
779
- "type": {
780
- "enum": ["replace", "sum"]
781
- },
782
- "defaultValue": "replace"
783
- },
784
- // https://svgwg.org/specs/animations/#AccumulateAttribute
785
- "accumulate": {
786
- "type": {
787
- "enum": ["none", "sum"]
788
- },
789
- "defaultValue": "none"
790
- }
791
- },
792
- "#SVGAnimationAttributeTargetAttrs": {
793
- // https://svgwg.org/specs/animations/#AttributeNameAttribute
794
- "attributeName": {
795
- "type": "XMLName"
796
- },
797
- // https://www.w3.org/TR/2001/REC-smil-animation-20010904/#AttributeTypeAttribute
798
- "attributeType": {
799
- "type": {
800
- "enum": ["CSS", "XML", "auto"]
801
- },
802
- "defaultValue": "auto",
803
- "noUse": true
804
- }
805
- },
806
- "#SVGAnimationEventAttrs": {
807
- // https://svgwg.org/svg2-draft/interact.html#OnBeginEventAttribute
808
- "onbegin": {
809
- "type": "FunctionBody"
810
- },
811
- // https://svgwg.org/svg2-draft/interact.html#OnEndEventAttribute
812
- "onend": {
813
- "type": "FunctionBody"
814
- },
815
- // https://svgwg.org/svg2-draft/interact.html#OnRepeatEventAttribute
816
- "onrepeat": {
817
- "type": "FunctionBody"
818
- }
819
- },
820
- "#SVGAnimationTargetElementAttrs": {
821
- // https://svgwg.org/specs/animations/#HrefAttribute
822
- "href": {
823
- "type": "URL"
824
- },
825
- // https://svgwg.org/svg2-draft/linking.html#XLinkHrefAttribute
826
- "xlink:href": {
827
- "type": "URL",
828
- "deprecated": true
829
- }
830
- },
831
- "#SVGAnimationTimingAttrs": {
832
- // https://svgwg.org/specs/animations/#BeginAttribute
833
- "begin": {
834
- "type": "<begin-value-list>",
835
- "defaultValue": "0s"
836
- },
837
- // https://svgwg.org/specs/animations/#DurAttribute
838
- "dur": {
839
- "type": [
840
- "<clock-value>",
841
- {
842
- "enum": ["media", "indefinite"]
843
- }
844
- ],
845
- "defaultValue": "indefinite"
846
- },
847
- // https://svgwg.org/specs/animations/#EndAttribute
848
- "end": {
849
- "type": "<end-value-list>"
850
- },
851
- // https://svgwg.org/specs/animations/#MinAttribute
852
- "min": {
853
- "type": "<clock-value>",
854
- "defaultValue": "0s"
855
- },
856
- // https://svgwg.org/specs/animations/#MaxAttribute
857
- "max": {
858
- "type": "<clock-value>"
859
- },
860
- // https://svgwg.org/specs/animations/#RestartAttribute
861
- "restart": {
862
- "type": {
863
- "enum": ["always", "whenNotActive", "never"]
864
- },
865
- "defaultValue": "always"
866
- },
867
- // https://svgwg.org/specs/animations/#RepeatCountAttribute
868
- "repeatCount": {
869
- "type": [
870
- "<number>",
871
- {
872
- "enum": ["indefinite"]
873
- }
874
- ]
875
- },
876
- // https://svgwg.org/specs/animations/#RepeatDurAttribute
877
- "repeatDur": {
878
- "type": [
879
- "<clock-value>",
880
- {
881
- "enum": ["indefinite"]
882
- }
883
- ]
884
- },
885
- // https://svgwg.org/specs/animations/#FillAttribute
886
- "fill": {
887
- "type": {
888
- "enum": ["freeze", "remove"]
889
- },
890
- "defaultValue": "remove"
891
- }
892
- },
893
- "#SVGAnimationValueAttrs": {
894
- // https://svgwg.org/specs/animations/#CalcModeAttribute
895
- "calcMode": {
896
- "type": {
897
- "enum": ["discrete", "linear", "paced", "spline"]
898
- },
899
- "defaultValue": "linear"
900
- },
901
- // https://svgwg.org/specs/animations/#ValuesAttribute
902
- "values": {
903
- "type": "<list-of-value>"
904
- },
905
- // https://svgwg.org/specs/animations/#KeyTimesAttribute
906
- "keyTimes": {
907
- "type": "<key-times>"
908
- },
909
- // https://svgwg.org/specs/animations/#KeySplinesAttribute
910
- "keySplines": {
911
- "type": "<key-splines>"
912
- },
913
- // https://svgwg.org/specs/animations/#FromAttribute
914
- "from": {
915
- "type": "<animatable-value>"
916
- },
917
- // https://svgwg.org/specs/animations/#ToAttribute
918
- "to": {
919
- "type": "<animatable-value>"
920
- },
921
- // https://svgwg.org/specs/animations/#ByAttribute
922
- "by": {
923
- "type": "<animatable-value>"
924
- },
925
- // https://www.w3.org/TR/REC-smil/smil-timemanip.html#adef-accelerate
926
- "accelerate": {
927
- "type": "<number-zero-one>",
928
- "defaultValue": "0"
929
- },
930
- // https://www.w3.org/TR/REC-smil/smil-timemanip.html#adef-decelerate
931
- "decelerate": {
932
- "type": "<number-zero-one>",
933
- "defaultValue": "0"
934
- },
935
- // https://www.w3.org/TR/REC-smil/smil-timemanip.html#TimeManip-autoReverseSyntax
936
- "autoReverse": {
937
- "type": {
938
- "enum": ["true", "false"]
939
- },
940
- "defaultValue": "false"
941
- },
942
- // https://www.w3.org/TR/REC-smil/smil-timemanip.html#adef-speed
943
- "speed": {
944
- "type": "<number>"
945
- }
946
- },
947
- "#SVGConditionalProcessingAttrs": {
948
- // https://svgwg.org/svg2-draft/struct.html#RequiredExtensionsAttribute
949
- "requiredExtensions": {
950
- "type": {
951
- "token": "URL",
952
- "unique": true,
953
- "separator": "space"
954
- }
955
- },
956
- // https://svgwg.org/svg2-draft/struct.html#SystemLanguageAttribute
957
- "systemLanguage": {
958
- "type": {
959
- "token": "BCP47",
960
- "unique": true,
961
- "separator": "comma"
962
- }
963
- },
964
- // https://www.w3.org/TR/SVG11/struct.html#RequiredFeaturesAttribute
965
- "requiredFeatures": {
966
- "type": "<list-of-svg-feature-string>",
967
- "deprecated": true
968
- }
969
- },
970
- "#SVGCoreAttrs": {
971
- // https://svgwg.org/svg2-draft/struct.html#IDAttribute
972
- "id": {
973
- "type": "DOMID"
974
- },
975
- // https://svgwg.org/svg2-draft/struct.html#SVGElementTabindexAttribute
976
- "tabindex": {
977
- "type": "TabIndex"
978
- },
979
- // https://svgwg.org/svg2-draft/struct.html#SVGElementAutofocusAttribute
980
- "autofocus": {
981
- "type": "Boolean"
982
- },
983
- // https://svgwg.org/svg2-draft/struct.html#LangAttribute
984
- "lang": {
985
- "type": "BCP47"
986
- },
987
- // https://svgwg.org/svg2-draft/styling.html#ClassAttribute
988
- "class": {
989
- "type": "Any"
990
- },
991
- // https://svgwg.org/svg2-draft/styling.html#StyleAttribute
992
- "style": {
993
- "type": "<css-declaration-list>"
994
- },
995
- // https://html.spec.whatwg.org/multipage/dom.html#global-attributes:html-documents
996
- "xmlns": {
997
- "type": "URL",
998
- "ineffective": ":not(:root)"
999
- },
1000
- // https://svgwg.org/svg2-draft/struct.html#XMLSpaceAttribute
1001
- "xml:space": {
1002
- "type": {
1003
- "enum": ["default", "preserve"]
1004
- },
1005
- "defaultValue": "default",
1006
- "deprecated": true
1007
- },
1008
- // https://svgwg.org/svg2-draft/struct.html#LangSpaceAttrs
1009
- "xml:lang": {
1010
- "type": "BCP47",
1011
- "deprecated": true
1012
- },
1013
- // https://www.w3.org/TR/SVG11/struct.html#XMLBaseAttribute
1014
- "xml:base": {
1015
- "type": "URL",
1016
- "deprecated": true
1017
- }
1018
- },
1019
- "#SVGFilterPrimitiveAttrs": {
1020
- // https://drafts.fxtf.org/filter-effects/#element-attrdef-filter-primitive-x
1021
- "x": {
1022
- "type": ["<svg-length>", "<percentage>"],
1023
- "defaultValue": "0%",
1024
- "animatable": true
1025
- },
1026
- // https://drafts.fxtf.org/filter-effects/#element-attrdef-filter-primitive-y
1027
- "y": {
1028
- "type": ["<svg-length>", "<percentage>"],
1029
- "defaultValue": "0%",
1030
- "animatable": true
1031
- },
1032
- // https://drafts.fxtf.org/filter-effects/#element-attrdef-filter-primitive-width
1033
- "width": {
1034
- "type": ["<svg-length>", "<percentage>"],
1035
- "defaultValue": "100%",
1036
- "animatable": true
1037
- },
1038
- // https://drafts.fxtf.org/filter-effects/#element-attrdef-filter-primitive-height
1039
- "height": {
1040
- "type": ["<svg-length>", "<percentage>"],
1041
- "defaultValue": "100%",
1042
- "animatable": true
1043
- },
1044
- // https://drafts.fxtf.org/filter-effects/#element-attrdef-filter-primitive-result
1045
- "result": {
1046
- "type": "<custom-ident>"
1047
- },
1048
- // https://drafts.fxtf.org/filter-effects/#element-attrdef-filter-primitive-in
1049
- "in": {
1050
- "type": [
1051
- {
1052
- "enum": [
1053
- "SourceGraphic",
1054
- "SourceAlpha",
1055
- "BackgroundImage",
1056
- "BackgroundAlpha",
1057
- "FillPaint",
1058
- "StrokePaint"
1059
- ],
1060
- "disallowToSurroundBySpaces": false
1061
- },
1062
- "<custom-ident>"
1063
- ],
1064
- "animatable": true
1065
- }
1066
- },
1067
- "#SVGPresentationAttrs": {
1068
- // https://svgwg.org/svg2-draft/geometry.html#CxProperty
1069
- "cx": {
1070
- "type": ["<svg-length>", "<percentage>"],
1071
- "defaultValue": "0",
1072
- "animatable": true
1073
- },
1074
- // https://svgwg.org/svg2-draft/geometry.html#CyProperty
1075
- "cy": {
1076
- "type": ["<svg-length>", "<percentage>"],
1077
- "defaultValue": "0",
1078
- "animatable": true
1079
- },
1080
- // https://svgwg.org/svg2-draft/geometry.html#Sizing
1081
- "height": {
1082
- "type": ["<svg-length>", "<'height'>"],
1083
- "defaultValue": "auto",
1084
- "animatable": true
1085
- },
1086
- // https://svgwg.org/svg2-draft/geometry.html#Sizing
1087
- "width": {
1088
- "type": ["<svg-length>", "<'width'>"],
1089
- "defaultValue": "auto",
1090
- "animatable": true
1091
- },
1092
- // https://svgwg.org/svg2-draft/geometry.html#XProperty
1093
- "x": {
1094
- "type": ["<svg-length>", "<percentage>"],
1095
- "defaultValue": "0",
1096
- "animatable": true
1097
- },
1098
- // https://svgwg.org/svg2-draft/geometry.html#YProperty
1099
- "y": {
1100
- "type": ["<svg-length>", "<percentage>"],
1101
- "defaultValue": "0",
1102
- "animatable": true
1103
- },
1104
- // https://svgwg.org/svg2-draft/geometry.html#RProperty
1105
- "r": {
1106
- "type": ["<svg-length>", "<percentage>"],
1107
- "defaultValue": "0",
1108
- "animatable": true
1109
- },
1110
- // https://svgwg.org/svg2-draft/geometry.html#RxProperty
1111
- "rx": {
1112
- "type": [
1113
- "<svg-length>",
1114
- "<percentage>",
1115
- {
1116
- "enum": ["auto"]
1117
- }
1118
- ],
1119
- "defaultValue": "auto",
1120
- "animatable": true
1121
- },
1122
- // https://svgwg.org/svg2-draft/geometry.html#RyProperty
1123
- "ry": {
1124
- "type": [
1125
- "<svg-length>",
1126
- "<percentage>",
1127
- {
1128
- "enum": ["auto"]
1129
- }
1130
- ],
1131
- "defaultValue": "auto",
1132
- "animatable": true
1133
- },
1134
- // https://svgwg.org/svg2-draft/paths.html#DProperty
1135
- "d": {
1136
- "type": "<svg-path>",
1137
- "defaultValue": "none"
1138
- },
1139
- // https://drafts.csswg.org/css-transforms/#transform-property
1140
- "transform": {
1141
- "type": "<'transform'>",
1142
- "defaultValue": "none",
1143
- "animatable": true
1144
- },
1145
- // https://drafts.csswg.org/css-transforms/#transform-origin-property
1146
- "transform-origin": {
1147
- "type": "<'transform-origin'>",
1148
- "defaultValue": "50%, 50%",
1149
- "animatable": true
1150
- },
1151
- // https://svgwg.org/svg2-draft/pservers.html#PatternElementPatternTransformAttribute
1152
- "patternTransform": {
1153
- "type": "<transform-list>",
1154
- "animatable": true
1155
- },
1156
- // https://svgwg.org/svg2-draft/pservers.html#LinearGradientElementGradientTransformAttribute
1157
- "gradientTransform": {
1158
- "type": "<transform-list>",
1159
- "animatable": true
1160
- },
1161
- // https://drafts.csswg.org/css-inline-3/#propdef-alignment-baseline
1162
- "alignment-baseline": {
1163
- "type": "<'alignment-baseline'>",
1164
- "defaultValue": "auto",
1165
- "animatable": true
1166
- },
1167
- // https://drafts.csswg.org/css-inline-3/#propdef-baseline-shift
1168
- "baseline-shift": {
1169
- "type": "<'baseline-shift'>",
1170
- "defaultValue": "0",
1171
- "animatable": true
1172
- },
1173
- // https://drafts.fxtf.org/css-masking/#propdef-clip-path
1174
- "clip-path": {
1175
- "type": "<'clip-path'>",
1176
- "defaultValue": "none",
1177
- "animatable": true
1178
- },
1179
- // https://drafts.fxtf.org/css-masking/#propdef-clip-rule
1180
- "clip-rule": {
1181
- "type": "<'clip-rule'>",
1182
- "defaultValue": "nonzero",
1183
- "animatable": true
1184
- },
1185
- // https://drafts.csswg.org/css-color-4/#propdef-color
1186
- "color": {
1187
- "type": "<color>",
1188
- "animatable": true
1189
- },
1190
- // https://svgwg.org/svg2-draft/painting.html#ColorInterpolationProperty
1191
- "color-interpolation": {
1192
- "type": {
1193
- "enum": ["auto", "sRGB", "linearRGB"],
1194
- "disallowToSurroundBySpaces": false
1195
- },
1196
- "defaultValue": "sRGB",
1197
- "animatable": true
1198
- },
1199
- // https://drafts.fxtf.org/filter-effects-1/#propdef-color-interpolation-filters
1200
- "color-interpolation-filters": {
1201
- "type": {
1202
- "enum": ["auto", "sRGB", "linearRGB"],
1203
- "disallowToSurroundBySpaces": false
1204
- },
1205
- "defaultValue": "linearRGB",
1206
- "animatable": true
1207
- },
1208
- // https://drafts.csswg.org/css-ui-4/#propdef-cursor
1209
- "cursor": {
1210
- "type": "<'cursor'>",
1211
- "defaultValue": "auto",
1212
- "animatable": true
1213
- },
1214
- // https://drafts.csswg.org/css-writing-modes-3/#propdef-direction
1215
- "direction": {
1216
- "type": "<'direction'>",
1217
- "defaultValue": "ltr"
1218
- },
1219
- // https://drafts.csswg.org/css-display-3/#propdef-display
1220
- "display": {
1221
- "type": "<'display'>",
1222
- "defaultValue": "inline"
1223
- },
1224
- // https://drafts.csswg.org/css-inline-3/#propdef-dominant-baseline
1225
- "dominant-baseline": {
1226
- "type": "<'dominant-baseline'>",
1227
- "defaultValue": "auto",
1228
- "animatable": true
1229
- },
1230
- // https://svgwg.org/svg2-draft/painting.html#FillProperty
1231
- "fill": {
1232
- "type": "<'fill'>",
1233
- "defaultValue": "black",
1234
- "animatable": true
1235
- },
1236
- // https://svgwg.org/svg2-draft/painting.html#FillOpacityProperty
1237
- "fill-opacity": {
1238
- "type": "<'fill-opacity'>",
1239
- "defaultValue": "1",
1240
- "animatable": true
1241
- },
1242
- // https://svgwg.org/svg2-draft/painting.html#FillRuleProperty
1243
- "fill-rule": {
1244
- "type": "<'fill-rule'>",
1245
- "defaultValue": "nonzero",
1246
- "animatable": true
1247
- },
1248
- // https://drafts.fxtf.org/filter-effects-1/#propdef-filter
1249
- "filter": {
1250
- "type": "<'filter'>",
1251
- "defaultValue": "none",
1252
- "animatable": true
1253
- },
1254
- // https://drafts.fxtf.org/filter-effects-1/#propdef-flood-color
1255
- "flood-color": {
1256
- "type": "<color>",
1257
- "defaultValue": "black",
1258
- "animatable": true
1259
- },
1260
- // https://drafts.fxtf.org/filter-effects-1/#propdef-flood-opacity
1261
- "flood-opacity": {
1262
- "type": "<alpha-value>",
1263
- "defaultValue": "1",
1264
- "animatable": true
1265
- },
1266
- // https://drafts.csswg.org/css-fonts-4/#propdef-font
1267
- "font": {
1268
- "type": "<'font'>",
1269
- "animatable": true
1270
- },
1271
- // https://drafts.csswg.org/css-fonts-4/#propdef-font-family
1272
- "font-family": {
1273
- "type": "<'font-family'>",
1274
- "animatable": true
1275
- },
1276
- // https://drafts.csswg.org/css-fonts-5/#descdef-font-face-font-size
1277
- "font-size": {
1278
- "type": "<svg-font-size>",
1279
- "defaultValue": "medium",
1280
- "animatable": true
1281
- },
1282
- // https://drafts.csswg.org/css-fonts-5/#propdef-font-size-adjust
1283
- "font-size-adjust": {
1284
- "type": "<svg-font-size-adjust>",
1285
- "defaultValue": "none",
1286
- "animatable": true
1287
- },
1288
- // https://drafts.csswg.org/css-fonts-4/#propdef-font-stretch
1289
- "font-stretch": {
1290
- "type": "<'font-stretch'>",
1291
- "defaultValue": "normal",
1292
- "animatable": true
1293
- },
1294
- // https://drafts.csswg.org/css-fonts-4/#propdef-font-style
1295
- "font-style": {
1296
- "type": "<'font-style'>",
1297
- "defaultValue": "normal",
1298
- "animatable": true
1299
- },
1300
- // https://drafts.csswg.org/css-fonts-4/#propdef-font-variant
1301
- "font-variant": {
1302
- "type": "<'font-variant'>",
1303
- "defaultValue": "normal",
1304
- "animatable": true
1305
- },
1306
- // https://drafts.csswg.org/css-fonts-4/#propdef-font-weight
1307
- "font-weight": {
1308
- "type": "<'font-weight'>",
1309
- "defaultValue": "normal",
1310
- "animatable": true
1311
- },
1312
- // https://www.w3.org/TR/SVG11/text.html#GlyphOrientationHorizontalProperty
1313
- "glyph-orientation-horizontal": {
1314
- "type": "<'glyph-orientation-horizontal'>",
1315
- "defaultValue": "0deg",
1316
- "deprecated": true
1317
- },
1318
- // https://drafts.csswg.org/css-writing-modes-4/#propdef-glyph-orientation-vertical
1319
- "glyph-orientation-vertical": {
1320
- "type": "<'glyph-orientation-vertical'>",
1321
- "deprecated": true
1322
- },
1323
- // https://drafts.csswg.org/css-images-3/#propdef-image-rendering
1324
- "image-rendering": {
1325
- "type": "<'image-rendering'>",
1326
- "defaultValue": "auto",
1327
- "animatable": true
1328
- },
1329
- // https://drafts.fxtf.org/compositing-2/#propdef-isolation
1330
- "isolation": {
1331
- "type": "<'isolation'>",
1332
- "defaultValue": "auto"
1333
- },
1334
- // https://drafts.csswg.org/css-text-3/#propdef-letter-spacing
1335
- "letter-spacing": {
1336
- "type": "<'letter-spacing'>",
1337
- "defaultValue": "normal",
1338
- "animatable": true
1339
- },
1340
- // https://drafts.fxtf.org/filter-effects-1/#propdef-lighting-color
1341
- "lighting-color": {
1342
- "type": "<color>",
1343
- "defaultValue": "white",
1344
- "animatable": true
1345
- },
1346
- // https://svgwg.org/svg2-draft/painting.html#MarkerProperty
1347
- "marker": {
1348
- "type": "<'marker'>",
1349
- "animatable": true
1350
- },
1351
- // https://svgwg.org/svg2-draft/painting.html#MarkerEndProperty
1352
- "marker-end": {
1353
- "type": "<'marker-end'>",
1354
- "defaultValue": "none",
1355
- "animatable": true
1356
- },
1357
- // https://svgwg.org/svg2-draft/painting.html#MarkerMidProperty
1358
- "marker-mid": {
1359
- "type": "<'marker-mid'>",
1360
- "defaultValue": "none",
1361
- "animatable": true
1362
- },
1363
- // https://svgwg.org/svg2-draft/painting.html#MarkerStartProperty
1364
- "marker-start": {
1365
- "type": "<'marker-start'>",
1366
- "defaultValue": "none",
1367
- "animatable": true
1368
- },
1369
- // https://drafts.fxtf.org/css-masking/#propdef-mask
1370
- "mask": {
1371
- "type": "<'mask'>",
1372
- "animatable": true
1373
- },
1374
- // https://drafts.fxtf.org/css-masking-1/#propdef-mask-type
1375
- "mask-type": {
1376
- "type": "<'mask-type'>",
1377
- "animatable": true
1378
- },
1379
- // https://drafts.csswg.org/css-color-4/#propdef-opacity
1380
- "opacity": {
1381
- "type": "<alpha-value>",
1382
- "defaultValue": "1",
1383
- "animatable": true
1384
- },
1385
- // https://drafts.csswg.org/css-overflow-3/#propdef-overflow
1386
- "overflow": {
1387
- "type": "<'overflow'>",
1388
- "defaultValue": "visible",
1389
- "animatable": true
1390
- },
1391
- // https://svgwg.org/svg2-draft/painting.html#PaintOrderProperty
1392
- "paint-order": {
1393
- "type": "<'paint-order'>",
1394
- "defaultValue": "normal",
1395
- "animatable": true
1396
- },
1397
- // https://drafts.csswg.org/css-ui-4/#propdef-pointer-events
1398
- "pointer-events": {
1399
- "type": "<'pointer-events'>",
1400
- "defaultValue": "auto",
1401
- "animatable": true
1402
- },
1403
- // https://svgwg.org/svg2-draft/painting.html#ShapeRenderingProperty
1404
- "shape-rendering": {
1405
- "type": "<'shape-rendering'>",
1406
- "defaultValue": "auto",
1407
- "animatable": true
1408
- },
1409
- // https://svgwg.org/svg2-draft/pservers.html#StopColorProperty
1410
- "stop-color": {
1411
- "type": "<'color'>",
1412
- "defaultValue": "black",
1413
- "animatable": true
1414
- },
1415
- // https://svgwg.org/svg2-draft/pservers.html#StopOpacityProperty
1416
- "stop-opacity": {
1417
- "type": "<'opacity'>",
1418
- "defaultValue": "1",
1419
- "animatable": true
1420
- },
1421
- // https://svgwg.org/svg2-draft/painting.html#StrokeProperty
1422
- "stroke": {
1423
- "type": "<'stroke'>",
1424
- "defaultValue": "none",
1425
- "animatable": true
1426
- },
1427
- // https://svgwg.org/svg2-draft/painting.html#StrokeDasharrayProperty
1428
- "stroke-dasharray": {
1429
- "type": "<'stroke-dasharray'>",
1430
- "defaultValue": "none",
1431
- "animatable": true
1432
- },
1433
- // https://svgwg.org/svg2-draft/painting.html#StrokeDashoffsetProperty
1434
- "stroke-dashoffset": {
1435
- "type": "<'stroke-dashoffset'>",
1436
- "defaultValue": "0",
1437
- "animatable": true
1438
- },
1439
- // https://svgwg.org/svg2-draft/painting.html#StrokeLinecapProperty
1440
- "stroke-linecap": {
1441
- "type": "<'stroke-linecap'>",
1442
- "defaultValue": "butt",
1443
- "animatable": true
1444
- },
1445
- // https://svgwg.org/svg2-draft/painting.html#StrokeLinejoinProperty
1446
- "stroke-linejoin": {
1447
- "type": "<'stroke-linejoin'>",
1448
- "defaultValue": "miter",
1449
- "animatable": true
1450
- },
1451
- // https://svgwg.org/svg2-draft/painting.html#StrokeMiterlimitProperty
1452
- "stroke-miterlimit": {
1453
- "type": "<'stroke-miterlimit'>",
1454
- "defaultValue": "4",
1455
- "animatable": true
1456
- },
1457
- // https://svgwg.org/svg2-draft/painting.html#StrokeOpacityProperty
1458
- "stroke-opacity": {
1459
- "type": "<'stroke-opacity'>",
1460
- "defaultValue": "1",
1461
- "animatable": true
1462
- },
1463
- // https://svgwg.org/svg2-draft/painting.html#StrokeWidthProperty
1464
- "stroke-width": {
1465
- "type": "<'stroke-width'>",
1466
- "defaultValue": "1px",
1467
- "animatable": true
1468
- },
1469
- // https://svgwg.org/svg2-draft/text.html#TextAnchorProperty
1470
- "text-anchor": {
1471
- "type": "<'text-anchor'>",
1472
- "defaultValue": "start",
1473
- "animatable": true
1474
- },
1475
- // https://drafts.csswg.org/css-text-decor-4/#propdef-text-decoration
1476
- "text-decoration": {
1477
- "type": "<'text-decoration'>",
1478
- "animatable": true
1479
- },
1480
- // https://svgwg.org/svg2-draft/text.html#TextOverflowProperty
1481
- "text-overflow": {
1482
- "type": "<'text-overflow'>",
1483
- "animatable": true
1484
- },
1485
- // https://svgwg.org/svg2-draft/painting.html#TextRenderingProperty
1486
- "text-rendering": {
1487
- "type": "<'text-rendering'>",
1488
- "defaultValue": "auto",
1489
- "animatable": true
1490
- },
1491
- // https://drafts.csswg.org/css-writing-modes-3/#propdef-unicode-bidi
1492
- "unicode-bidi": {
1493
- "type": "<'unicode-bidi'>",
1494
- "defaultValue": "normal"
1495
- },
1496
- // https://svgwg.org/svg2-draft/coords.html#VectorEffectProperty
1497
- "vector-effect": {
1498
- "type": {
1499
- "enum": ["none", "non-scaling-stroke", "non-scaling-size", "non-rotation", "fixed-position"]
1500
- },
1501
- "defaultValue": "none",
1502
- "animatable": true
1503
- },
1504
- // https://drafts.csswg.org/css-display-3/#propdef-visibility
1505
- "visibility": {
1506
- "type": "<'visibility'>",
1507
- "defaultValue": "visible",
1508
- "animatable": true
1509
- },
1510
- // https://www.w3.org/TR/css-text-3/#white-space-property
1511
- "white-space": {
1512
- "type": "<'white-space'>",
1513
- "defaultValue": "normal",
1514
- "animatable": true
1515
- },
1516
- // https://drafts.csswg.org/css-text-3/#propdef-word-spacing
1517
- "word-spacing": {
1518
- "type": "<'word-spacing'>",
1519
- "defaultValue": "normal",
1520
- "animatable": true
1521
- },
1522
- // https://drafts.csswg.org/css-writing-modes-4/#propdef-writing-mode
1523
- "writing-mode": {
1524
- "type": "<'writing-mode'>",
1525
- "defaultValue": "horizontal-tb"
1526
- },
1527
- // https://drafts.fxtf.org/css-masking/#propdef-clip
1528
- "clip": {
1529
- "type": "<'clip'>",
1530
- "defaultValue": "auto",
1531
- "animatable": true,
1532
- "deprecated": true
1533
- },
1534
- // https://www.w3.org/TR/SVG11/color.html#ColorProfileProperty
1535
- "color-profile": {
1536
- "type": "<'color-profile'>",
1537
- "defaultValue": "auto",
1538
- "animatable": true,
1539
- "deprecated": true
1540
- },
1541
- // https://www.w3.org/TR/SVG11/painting.html#ColorRenderingProperty
1542
- "color-rendering": {
1543
- "type": "<'color-rendering'>",
1544
- "defaultValue": "auto",
1545
- "animatable": true,
1546
- "deprecated": true
1547
- },
1548
- // https://www.w3.org/TR/SVG11/filters.html#EnableBackgroundProperty
1549
- "enable-background": {
1550
- "type": "<'enable-background'>",
1551
- "defaultValue": "accumulate",
1552
- "deprecated": true
1553
- },
1554
- // https://www.w3.org/TR/SVG11/text.html#KerningProperty
1555
- "kerning": {
1556
- "type": "<'kerning'>",
1557
- "defaultValue": "auto",
1558
- "animatable": true,
1559
- "deprecated": true
1560
- }
1561
- },
1562
- "#SVGTransferFunctionAttrs": {
1563
- // https://drafts.fxtf.org/filter-effects/#element-attrdef-fecomponenttransfer-type
1564
- "type": {
1565
- "type": {
1566
- "enum": ["identity", "table", "discrete", "linear", "gamma"]
1567
- },
1568
- "defaultValue": "identity",
1569
- "animatable": true
1570
- },
1571
- // https://drafts.fxtf.org/filter-effects/#element-attrdef-fecomponenttransfer-tablevalues
1572
- "tableValues": {
1573
- "type": "<list-of-numbers>",
1574
- "animatable": true
1575
- },
1576
- // https://drafts.fxtf.org/filter-effects/#element-attrdef-fecomponenttransfer-slope
1577
- "slope": {
1578
- "type": "<number>",
1579
- "defaultValue": "1",
1580
- "animatable": true
1581
- },
1582
- // https://drafts.fxtf.org/filter-effects/#element-attrdef-fecomponenttransfer-intercept
1583
- "intercept": {
1584
- "type": "<number>",
1585
- "defaultValue": "0",
1586
- "animatable": true
1587
- },
1588
- // https://drafts.fxtf.org/filter-effects/#element-attrdef-fecomponenttransfer-amplitude
1589
- "amplitude": {
1590
- "type": "<number>",
1591
- "defaultValue": "1",
1592
- "animatable": true
1593
- },
1594
- // https://drafts.fxtf.org/filter-effects/#element-attrdef-fecomponenttransfer-exponent
1595
- "exponent": {
1596
- "type": "<number>",
1597
- "defaultValue": "1",
1598
- "animatable": true
1599
- },
1600
- // https://drafts.fxtf.org/filter-effects/#element-attrdef-fecomponenttransfer-offset
1601
- "offset": {
1602
- "type": "<number>",
1603
- "defaultValue": "0",
1604
- "animatable": true
1605
- }
1606
- },
1607
- "#XLinkAttrs": {
1608
- // https://www.w3.org/TR/xlink11/#link-locators
1609
- "xlink:href": {
1610
- "type": "URL",
1611
- "deprecated": true
1612
- },
1613
- // https://www.w3.org/TR/xlink11/#link-semantics
1614
- "xlink:title": {
1615
- "type": "Any",
1616
- "deprecated": true
1617
- },
1618
- // https://www.w3.org/TR/xlink11/#link-types
1619
- "xlink:type": {
1620
- "type": {
1621
- "enum": ["simple"]
1622
- },
1623
- "defaultValue": "simple",
1624
- "deprecated": true
1625
- },
1626
- // https://www.w3.org/TR/xlink11/#link-semantics
1627
- "xlink:role": {
1628
- "type": "Any",
1629
- "deprecated": true
1630
- },
1631
- // https://www.w3.org/TR/xlink11/#link-semantics
1632
- "xlink:arcrole": {
1633
- "type": "URL",
1634
- "deprecated": true
1635
- },
1636
- // https://www.w3.org/TR/xlink11/#link-behaviors
1637
- "xlink:show": {
1638
- "type": {
1639
- "enum": ["new", "replace", "embed", "other", "none"]
1640
- },
1641
- "defaultValue": "replace",
1642
- "deprecated": true
1643
- },
1644
- // https://www.w3.org/TR/xlink11/#link-behaviors
1645
- "xlink:actuate": {
1646
- "type": "Any",
1647
- "deprecated": true
1648
- }
1649
- }
1650
- }