@markuplint/html-spec 2.0.0-dev.26 → 2.0.0-rc.5

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 (228) hide show
  1. package/index.json +8572 -5691
  2. package/package.json +5 -3
  3. package/src/aria-in-html/abbr.json +8 -0
  4. package/src/aria-in-html/address.json +8 -0
  5. package/src/aria-in-html/b.json +8 -0
  6. package/src/aria-in-html/base.json +8 -0
  7. package/src/aria-in-html/bdi.json +8 -0
  8. package/src/aria-in-html/bdo.json +8 -0
  9. package/src/aria-in-html/blockquote.json +8 -0
  10. package/src/aria-in-html/canvas.json +8 -0
  11. package/src/aria-in-html/caption.json +8 -0
  12. package/src/aria-in-html/cite.json +8 -0
  13. package/src/aria-in-html/code.json +8 -0
  14. package/src/aria-in-html/data.json +8 -0
  15. package/src/aria-in-html/del.json +8 -0
  16. package/src/aria-in-html/div.json +8 -0
  17. package/src/aria-in-html/em.json +8 -0
  18. package/src/aria-in-html/hgroup.json +8 -0
  19. package/src/aria-in-html/i.json +8 -0
  20. package/src/aria-in-html/ins.json +8 -0
  21. package/src/aria-in-html/kbd.json +8 -0
  22. package/src/aria-in-html/mark.json +8 -0
  23. package/src/aria-in-html/p.json +8 -0
  24. package/src/aria-in-html/pre.json +8 -0
  25. package/src/aria-in-html/q.json +8 -0
  26. package/src/aria-in-html/rp.json +8 -0
  27. package/src/aria-in-html/rt.json +8 -0
  28. package/src/aria-in-html/ruby.json +8 -0
  29. package/src/aria-in-html/s.json +8 -0
  30. package/src/aria-in-html/samp.json +8 -0
  31. package/src/aria-in-html/small.json +8 -0
  32. package/src/aria-in-html/span.json +8 -0
  33. package/src/aria-in-html/strong.json +8 -0
  34. package/src/aria-in-html/sub.json +8 -0
  35. package/src/aria-in-html/sup.json +8 -0
  36. package/src/aria-in-html/td.json +6 -2
  37. package/src/aria-in-html/time.json +8 -0
  38. package/src/aria-in-html/u.json +8 -0
  39. package/src/aria-in-html/var.json +8 -0
  40. package/src/aria-in-html/wbr.json +8 -0
  41. package/src/attributes/a.json +9 -40
  42. package/src/attributes/abbr.json +11 -0
  43. package/src/attributes/address.json +11 -0
  44. package/src/attributes/area.json +24 -44
  45. package/src/attributes/article.json +11 -0
  46. package/src/attributes/aside.json +11 -0
  47. package/src/attributes/audio.json +10 -32
  48. package/src/attributes/b.json +11 -0
  49. package/src/attributes/base.json +9 -13
  50. package/src/attributes/bdi.json +11 -0
  51. package/src/attributes/bdo.json +8 -8
  52. package/src/attributes/blockquote.json +11 -4
  53. package/src/attributes/body.json +57 -50
  54. package/src/attributes/br.json +11 -0
  55. package/src/attributes/button.json +27 -44
  56. package/src/attributes/canvas.json +16 -8
  57. package/src/attributes/caption.json +11 -0
  58. package/src/attributes/cite.json +11 -0
  59. package/src/attributes/code.json +11 -0
  60. package/src/attributes/col.json +18 -5
  61. package/src/attributes/colgroup.json +18 -5
  62. package/src/attributes/data.json +12 -5
  63. package/src/attributes/datalist.json +11 -0
  64. package/src/attributes/dd.json +11 -0
  65. package/src/attributes/del.json +14 -7
  66. package/src/attributes/details.json +11 -9
  67. package/src/attributes/dfn.json +11 -0
  68. package/src/attributes/dialog.json +15 -4
  69. package/src/attributes/div.json +11 -0
  70. package/src/attributes/dl.json +11 -0
  71. package/src/attributes/dt.json +11 -0
  72. package/src/attributes/em.json +11 -0
  73. package/src/attributes/embed.json +22 -16
  74. package/src/attributes/fieldset.json +9 -14
  75. package/src/attributes/figcaption.json +11 -0
  76. package/src/attributes/figure.json +11 -0
  77. package/src/attributes/footer.json +11 -0
  78. package/src/attributes/form.json +62 -29
  79. package/src/attributes/h1.json +11 -0
  80. package/src/attributes/h2.json +11 -0
  81. package/src/attributes/h3.json +11 -0
  82. package/src/attributes/h4.json +11 -0
  83. package/src/attributes/h5.json +11 -0
  84. package/src/attributes/h6.json +11 -0
  85. package/src/attributes/head.json +11 -0
  86. package/src/attributes/header.json +11 -0
  87. package/src/attributes/hgroup.json +11 -0
  88. package/src/attributes/hr.json +11 -0
  89. package/src/attributes/html.json +11 -0
  90. package/src/attributes/i.json +11 -0
  91. package/src/attributes/iframe.json +51 -57
  92. package/src/attributes/img.json +31 -50
  93. package/src/attributes/input.json +138 -121
  94. package/src/attributes/ins.json +14 -7
  95. package/src/attributes/kbd.json +11 -0
  96. package/src/attributes/label.json +11 -8
  97. package/src/attributes/legend.json +11 -0
  98. package/src/attributes/li.json +12 -5
  99. package/src/attributes/link.json +110 -51
  100. package/src/attributes/main.json +11 -0
  101. package/src/attributes/map.json +13 -5
  102. package/src/attributes/mark.json +11 -0
  103. package/src/attributes/math.json +8 -0
  104. package/src/attributes/menu.json +11 -0
  105. package/src/attributes/meta.json +36 -21
  106. package/src/attributes/meter.json +27 -20
  107. package/src/attributes/nav.json +11 -0
  108. package/src/attributes/noscript.json +11 -0
  109. package/src/attributes/object.json +20 -27
  110. package/src/attributes/ol.json +19 -9
  111. package/src/attributes/optgroup.json +13 -9
  112. package/src/attributes/option.json +18 -14
  113. package/src/attributes/output.json +12 -12
  114. package/src/attributes/p.json +11 -0
  115. package/src/attributes/param.json +17 -8
  116. package/src/attributes/picture.json +11 -0
  117. package/src/attributes/portal.json +17 -8
  118. package/src/attributes/pre.json +11 -0
  119. package/src/attributes/progress.json +16 -8
  120. package/src/attributes/q.json +11 -4
  121. package/src/attributes/rp.json +11 -0
  122. package/src/attributes/rt.json +11 -0
  123. package/src/attributes/ruby.json +11 -0
  124. package/src/attributes/s.json +11 -0
  125. package/src/attributes/samp.json +11 -0
  126. package/src/attributes/script.json +48 -27
  127. package/src/attributes/section.json +11 -0
  128. package/src/attributes/select.json +17 -29
  129. package/src/attributes/slot.json +12 -5
  130. package/src/attributes/small.json +11 -0
  131. package/src/attributes/source.json +34 -16
  132. package/src/attributes/span.json +11 -0
  133. package/src/attributes/strong.json +11 -0
  134. package/src/attributes/style.json +12 -5
  135. package/src/attributes/sub.json +11 -0
  136. package/src/attributes/summary.json +11 -0
  137. package/src/attributes/sup.json +11 -0
  138. package/src/attributes/svg_a.json +82 -47
  139. package/src/attributes/svg_animate.json +94 -13
  140. package/src/attributes/svg_animateMotion.json +36 -32
  141. package/src/attributes/svg_animateTransform.json +27 -14
  142. package/src/attributes/svg_circle.json +88 -26
  143. package/src/attributes/svg_clipPath.json +79 -15
  144. package/src/attributes/svg_defs.json +77 -1
  145. package/src/attributes/svg_desc.json +7 -1
  146. package/src/attributes/svg_discard.json +13 -10
  147. package/src/attributes/svg_ellipse.json +89 -27
  148. package/src/attributes/svg_feBlend.json +89 -40
  149. package/src/attributes/svg_feColorMatrix.json +86 -38
  150. package/src/attributes/svg_feComponentTransfer.json +76 -31
  151. package/src/attributes/svg_feComposite.json +114 -56
  152. package/src/attributes/svg_feConvolveMatrix.json +119 -62
  153. package/src/attributes/svg_feDiffuseLighting.json +91 -42
  154. package/src/attributes/svg_feDisplacementMap.json +101 -47
  155. package/src/attributes/svg_feDistantLight.json +16 -11
  156. package/src/attributes/svg_feDropShadow.json +92 -43
  157. package/src/attributes/svg_feFlood.json +83 -37
  158. package/src/attributes/svg_feFuncA.json +6 -10
  159. package/src/attributes/svg_feFuncB.json +6 -10
  160. package/src/attributes/svg_feFuncG.json +6 -10
  161. package/src/attributes/svg_feFuncR.json +6 -10
  162. package/src/attributes/svg_feGaussianBlur.json +86 -38
  163. package/src/attributes/svg_feImage.json +98 -31
  164. package/src/attributes/svg_feMerge.json +76 -15
  165. package/src/attributes/svg_feMergeNode.json +6 -19
  166. package/src/attributes/svg_feMorphology.json +88 -39
  167. package/src/attributes/svg_feOffset.json +87 -39
  168. package/src/attributes/svg_fePointLight.json +21 -15
  169. package/src/attributes/svg_feSpecularLighting.json +96 -47
  170. package/src/attributes/svg_feSpotLight.json +52 -58
  171. package/src/attributes/svg_feTile.json +76 -31
  172. package/src/attributes/svg_feTurbulence.json +101 -33
  173. package/src/attributes/svg_filter.json +103 -27
  174. package/src/attributes/svg_foreignObject.json +84 -38
  175. package/src/attributes/svg_g.json +80 -8
  176. package/src/attributes/svg_hatch.json +103 -29
  177. package/src/attributes/svg_hatchpath.json +79 -11
  178. package/src/attributes/svg_image.json +98 -46
  179. package/src/attributes/svg_line.json +105 -27
  180. package/src/attributes/svg_linearGradient.json +118 -37
  181. package/src/attributes/svg_marker.json +125 -44
  182. package/src/attributes/svg_mask.json +89 -22
  183. package/src/attributes/svg_mesh.json +83 -10
  184. package/src/attributes/svg_meshgradient.json +22 -29
  185. package/src/attributes/svg_meshpatch.json +76 -1
  186. package/src/attributes/svg_meshrow.json +76 -1
  187. package/src/attributes/svg_metadata.json +7 -1
  188. package/src/attributes/svg_mpath.json +11 -8
  189. package/src/attributes/svg_path.json +87 -15
  190. package/src/attributes/svg_pattern.json +110 -46
  191. package/src/attributes/svg_polygon.json +89 -14
  192. package/src/attributes/svg_polyline.json +89 -14
  193. package/src/attributes/svg_radialGradient.json +132 -49
  194. package/src/attributes/svg_rect.json +91 -51
  195. package/src/attributes/svg_script.json +20 -17
  196. package/src/attributes/svg_set.json +27 -13
  197. package/src/attributes/svg_stop.json +93 -18
  198. package/src/attributes/svg_style.json +16 -13
  199. package/src/attributes/svg_svg.json +115 -62
  200. package/src/attributes/svg_switch.json +80 -8
  201. package/src/attributes/svg_symbol.json +27 -44
  202. package/src/attributes/svg_text.json +115 -32
  203. package/src/attributes/svg_textPath.json +124 -37
  204. package/src/attributes/svg_title.json +7 -1
  205. package/src/attributes/svg_tspan.json +111 -32
  206. package/src/attributes/svg_use.json +88 -46
  207. package/src/attributes/svg_view.json +21 -17
  208. package/src/attributes/table.json +11 -0
  209. package/src/attributes/tbody.json +11 -0
  210. package/src/attributes/td.json +9 -14
  211. package/src/attributes/template.json +11 -0
  212. package/src/attributes/textarea.json +42 -50
  213. package/src/attributes/tfoot.json +11 -0
  214. package/src/attributes/th.json +18 -20
  215. package/src/attributes/thead.json +11 -0
  216. package/src/attributes/time.json +12 -23
  217. package/src/attributes/title.json +11 -0
  218. package/src/attributes/tr.json +11 -0
  219. package/src/attributes/track.json +38 -0
  220. package/src/attributes/u.json +11 -0
  221. package/src/attributes/ul.json +11 -0
  222. package/src/attributes/var.json +11 -0
  223. package/src/attributes/video.json +34 -48
  224. package/src/attributes/wbr.json +11 -0
  225. package/src/global-attributes/_global.json +1362 -1161
  226. package/src/permitted-structures/svg_a.json +1 -1
  227. package/src/structure.test.ts +64 -0
  228. package/src/attributes/_custom.json +0 -10
@@ -1,52 +1,133 @@
1
1
  {
2
2
  "tag": "linearGradient",
3
- "attributes": [
4
- "#SVGCoreAttrs",
5
- "#SVGGlobalEventAttrs",
6
- "#SVGDocumentElementEventAttrs",
7
- "#SVGPresentationAttrs",
8
- "#XLinkAttrs",
9
- {
10
- "name": "x1",
11
- "type": ["SVGLength", "SVGPercentage"],
12
- "defaultValue": "0%"
3
+ "ref": "https://svgwg.org/svg2-draft/pservers.html#LinearGradientElement",
4
+ "global": {
5
+ "#GlobalEventAttrs": true,
6
+ "#DocumentElementEventAttrs": true,
7
+ "#SVGCoreAttrs": ["id", "tabindex", "autofocus", "lang", "xml:space", "class", "style"],
8
+ "#SVGPresentationAttrs": [
9
+ "alignment-baseline",
10
+ "baseline-shift",
11
+ "clip",
12
+ "clip-path",
13
+ "clip-rule",
14
+ "color",
15
+ "color-interpolation",
16
+ "color-interpolation-filters",
17
+ "color-rendering",
18
+ "cursor",
19
+ "direction",
20
+ "display",
21
+ "dominant-baseline",
22
+ "enable-background",
23
+ "fill",
24
+ "fill-opacity",
25
+ "fill-rule",
26
+ "filter",
27
+ "flood-color",
28
+ "flood-opacity",
29
+ "font",
30
+ "font-family",
31
+ "font-size",
32
+ "font-size-adjust",
33
+ "font-stretch",
34
+ "font-style",
35
+ "font-variant",
36
+ "font-weight",
37
+ "glyph-orientation-horizontal",
38
+ "glyph-orientation-vertical",
39
+ "image-rendering",
40
+ "isolation",
41
+ "kerning",
42
+ "letter-spacing",
43
+ "lighting-color",
44
+ "marker",
45
+ "marker-end",
46
+ "marker-mid",
47
+ "marker-start",
48
+ "mask",
49
+ "mask-type",
50
+ "opacity",
51
+ "overflow",
52
+ "paint-order",
53
+ "pointer-events",
54
+ "shape-rendering",
55
+ "stop-color",
56
+ "stop-opacity",
57
+ "stroke",
58
+ "stroke-dasharray",
59
+ "stroke-dashoffset",
60
+ "stroke-linecap",
61
+ "stroke-linejoin",
62
+ "stroke-miterlimit",
63
+ "stroke-opacity",
64
+ "stroke-width",
65
+ "text-anchor",
66
+ "text-decoration",
67
+ "text-overflow",
68
+ "text-rendering",
69
+ "transform-origin",
70
+ "unicode-bidi",
71
+ "vector-effect",
72
+ "visibility",
73
+ "white-space",
74
+ "word-spacing",
75
+ "writing-mode"
76
+ ],
77
+ "#XLinkAttrs": ["xlink:href", "xlink:title"]
78
+ },
79
+ "attributes": {
80
+ "x1": {
81
+ "ref": "https://svgwg.org/svg2-draft/pservers.html#LinearGradientElementX1Attribute",
82
+ "type": ["<svg-length>", "<percentage>"],
83
+ "defaultValue": "0%",
84
+ "animatable": true
13
85
  },
14
- {
15
- "name": "y1",
16
- "type": ["SVGLength", "SVGPercentage"],
17
- "defaultValue": "0%"
86
+ "y1": {
87
+ "ref": "https://svgwg.org/svg2-draft/pservers.html#LinearGradientElementY1Attribute",
88
+ "type": ["<svg-length>", "<percentage>"],
89
+ "defaultValue": "0%",
90
+ "animatable": true
18
91
  },
19
- {
20
- "name": "x2",
21
- "type": ["SVGLength", "SVGPercentage"],
22
- "defaultValue": "100%"
92
+ "x2": {
93
+ "ref": "https://svgwg.org/svg2-draft/pservers.html#LinearGradientElementX2Attribute",
94
+ "type": ["<svg-length>", "<percentage>"],
95
+ "defaultValue": "100%",
96
+ "animatable": true
23
97
  },
24
- {
25
- "name": "y2",
26
- "type": ["SVGLength", "SVGPercentage"],
27
- "defaultValue": "0%"
98
+ "y2": {
99
+ "ref": "https://svgwg.org/svg2-draft/pservers.html#LinearGradientElementY2Attribute",
100
+ "type": ["<svg-length>", "<percentage>"],
101
+ "defaultValue": "0%",
102
+ "animatable": true
28
103
  },
29
- {
30
- "name": "gradientUnits",
104
+ "gradientUnits": {
105
+ "ref": "https://svgwg.org/svg2-draft/pservers.html#LinearGradientElementGradientUnitsAttribute",
31
106
  "type": {
32
- "enum": ["userSpaceOnUse", "objectBoundingBox"]
107
+ "enum": ["userSpaceOnUse", "objectBoundingBox"],
108
+ "disallowToSurroundBySpaces": false
33
109
  },
34
- "defaultValue": "objectBoundingBox"
110
+ "defaultValue": "objectBoundingBox",
111
+ "animatable": true
35
112
  },
36
- {
37
- "name": "gradientTransform",
38
- "type": "CSSTransformList"
113
+ "gradientTransform": {
114
+ "ref": "https://svgwg.org/svg2-draft/pservers.html#LinearGradientElementGradientTransformAttribute",
115
+ "type": "<transform-list>",
116
+ "animatable": true
39
117
  },
40
- {
41
- "name": "spreadMethod",
118
+ "spreadMethod": {
119
+ "ref": "https://svgwg.org/svg2-draft/pservers.html#LinearGradientElementSpreadMethodAttribute",
42
120
  "type": {
43
- "enum": ["pad", "reflect", "repeat"]
121
+ "enum": ["pad", "reflect", "repeat"],
122
+ "disallowToSurroundBySpaces": false
44
123
  },
45
- "defaultValue": "pad"
124
+ "defaultValue": "pad",
125
+ "animatable": true
46
126
  },
47
- {
48
- "name": "href",
49
- "type": "URL"
127
+ "href": {
128
+ "ref": "https://svgwg.org/svg2-draft/pservers.html#LinearGradientElementHrefAttribute",
129
+ "type": "URL",
130
+ "animatable": true
50
131
  }
51
- ]
132
+ }
52
133
  }
@@ -1,70 +1,151 @@
1
1
  {
2
2
  "tag": "marker",
3
- "attributes": [
4
- "#SVGCoreAttrs",
5
- "#SVGGlobalEventAttrs",
6
- "#SVGDocumentElementEventAttrs",
7
- "#SVGPresentationAttrs",
8
- {
9
- "name": "viewBox",
10
- "type": "SVGViewBox"
3
+ "ref": "https://svgwg.org/svg2-draft/painting.html#MarkerElement",
4
+ "global": {
5
+ "#GlobalEventAttrs": true,
6
+ "#DocumentElementEventAttrs": true,
7
+ "#SVGCoreAttrs": ["id", "tabindex", "autofocus", "lang", "xml:space", "class", "style"],
8
+ "#SVGPresentationAttrs": [
9
+ "alignment-baseline",
10
+ "baseline-shift",
11
+ "clip",
12
+ "clip-path",
13
+ "clip-rule",
14
+ "color",
15
+ "color-interpolation",
16
+ "color-interpolation-filters",
17
+ "color-rendering",
18
+ "cursor",
19
+ "direction",
20
+ "display",
21
+ "dominant-baseline",
22
+ "enable-background",
23
+ "fill",
24
+ "fill-opacity",
25
+ "fill-rule",
26
+ "filter",
27
+ "flood-color",
28
+ "flood-opacity",
29
+ "font",
30
+ "font-family",
31
+ "font-size",
32
+ "font-size-adjust",
33
+ "font-stretch",
34
+ "font-style",
35
+ "font-variant",
36
+ "font-weight",
37
+ "glyph-orientation-horizontal",
38
+ "glyph-orientation-vertical",
39
+ "image-rendering",
40
+ "isolation",
41
+ "kerning",
42
+ "letter-spacing",
43
+ "lighting-color",
44
+ "marker",
45
+ "marker-end",
46
+ "marker-mid",
47
+ "marker-start",
48
+ "mask",
49
+ "mask-type",
50
+ "opacity",
51
+ "overflow",
52
+ "paint-order",
53
+ "pointer-events",
54
+ "shape-rendering",
55
+ "stop-color",
56
+ "stop-opacity",
57
+ "stroke",
58
+ "stroke-dasharray",
59
+ "stroke-dashoffset",
60
+ "stroke-linecap",
61
+ "stroke-linejoin",
62
+ "stroke-miterlimit",
63
+ "stroke-opacity",
64
+ "stroke-width",
65
+ "text-anchor",
66
+ "text-decoration",
67
+ "text-overflow",
68
+ "text-rendering",
69
+ "transform",
70
+ "transform-origin",
71
+ "unicode-bidi",
72
+ "vector-effect",
73
+ "visibility",
74
+ "white-space",
75
+ "word-spacing",
76
+ "writing-mode"
77
+ ]
78
+ },
79
+ "attributes": {
80
+ "viewBox": {
81
+ "ref": "https://svgwg.org/svg2-draft/coords.html#ViewBoxAttribute",
82
+ "type": "<view-box>",
83
+ "animatable": true
11
84
  },
12
- {
13
- "name": "preserveAspectRatio",
14
- "type": "SVGPreserveAspectRatio",
15
- "defaultValue": "xMidYMid meet"
85
+ "preserveAspectRatio": {
86
+ "ref": "https://svgwg.org/svg2-draft/coords.html#PreserveAspectRatioAttribute",
87
+ "type": "<preserve-aspect-ratio>",
88
+ "defaultValue": "xMidYMid meet",
89
+ "animatable": true
16
90
  },
17
- {
18
- "name": "refX",
91
+ "refX": {
92
+ "ref": "https://svgwg.org/svg2-draft/painting.html#MarkerElementRefXAttribute",
19
93
  "type": [
20
- "SVGLength",
21
- "SVGPercentage",
22
- "Float",
94
+ "<percentage>",
95
+ "<number>",
23
96
  {
24
- "enum": ["left", "center", "right"]
97
+ "enum": ["left", "center", "right"],
98
+ "disallowToSurroundBySpaces": false
25
99
  }
26
100
  ],
27
- "defaultValue": "0"
101
+ "defaultValue": "0",
102
+ "animatable": true
28
103
  },
29
- {
30
- "name": "refY",
104
+ "refY": {
105
+ "ref": "https://svgwg.org/svg2-draft/painting.html#MarkerElementRefYAttribute",
31
106
  "type": [
32
- "SVGLength",
33
- "SVGPercentage",
34
- "Float",
107
+ "<percentage>",
108
+ "<number>",
35
109
  {
36
- "enum": ["top", "center", "bottom"]
110
+ "enum": ["left", "center", "right"],
111
+ "disallowToSurroundBySpaces": false
37
112
  }
38
113
  ],
39
- "defaultValue": "0"
114
+ "defaultValue": "0",
115
+ "animatable": true
40
116
  },
41
- {
42
- "name": "markerUnits",
117
+ "markerUnits": {
118
+ "ref": "https://svgwg.org/svg2-draft/painting.html#MarkerUnitsAttribute",
43
119
  "type": {
44
- "enum": ["userSpaceOnUse", "strokeWidth"]
120
+ "enum": ["userSpaceOnUse", "strokeWidth"],
121
+ "disallowToSurroundBySpaces": false
45
122
  },
46
123
  "defaultValue": "strokeWidth"
47
124
  },
48
- {
49
- "name": "markerWidth",
50
- "type": ["SVGLength", "SVGPercentage", "Float"],
51
- "defaultValue": "3"
125
+ "markerWidth": {
126
+ "ref": "https://svgwg.org/svg2-draft/painting.html#MarkerWidthAttribute",
127
+ "type": ["<svg-length>", "<percentage>", "<number>"],
128
+ "defaultValue": "3",
129
+ "animatable": true
52
130
  },
53
- {
54
- "name": "markerHeight",
55
- "type": ["SVGLength", "SVGPercentage", "Float"],
56
- "defaultValue": "3"
131
+ "markerHeight": {
132
+ "ref": "https://svgwg.org/svg2-draft/painting.html#MarkerHeightAttribute",
133
+ "type": ["<svg-length>", "<percentage>", "<number>"],
134
+ "defaultValue": "3",
135
+ "animatable": true
57
136
  },
58
- {
59
- "name": "orient",
137
+ "orient": {
138
+ "ref": "https://svgwg.org/svg2-draft/painting.html#OrientAttribute",
60
139
  "type": [
61
140
  {
62
- "enum": ["auto", "auto-start-reverse"]
141
+ "enum": ["auto", "auto-start-reverse"],
142
+ "disallowToSurroundBySpaces": false
63
143
  },
64
- "CSSAngle",
65
- "Float"
144
+ "<angle>",
145
+ "<number>"
66
146
  ],
67
- "defaultValue": "0"
147
+ "defaultValue": "0",
148
+ "animatable": true
68
149
  }
69
- ]
150
+ }
70
151
  }
@@ -1,40 +1,107 @@
1
1
  {
2
2
  "tag": "mask",
3
- "attributes": [
4
- "#SVGCoreAttrs",
5
- "#SVGConditionalProcessingAttrs",
6
- "#SVGPresentationAttrs",
7
- {
8
- "name": "x",
3
+ "ref": "https://drafts.fxtf.org/css-masking/#MaskElement",
4
+ "global": {
5
+ "#SVGCoreAttrs": ["id", "xml:base", "xml:lang", "xml:space", "class", "style"],
6
+ "#SVGConditionalProcessingAttrs": ["requiredFeatures", "requiredExtensions", "systemLanguage"],
7
+ "#SVGPresentationAttrs": [
8
+ "alignment-baseline",
9
+ "baseline-shift",
10
+ "clip",
11
+ "clip-path",
12
+ "clip-rule",
13
+ "color",
14
+ "color-interpolation",
15
+ "color-interpolation-filters",
16
+ "color-profile",
17
+ "color-rendering",
18
+ "cursor",
19
+ "direction",
20
+ "display",
21
+ "dominant-baseline",
22
+ "enable-background",
23
+ "fill",
24
+ "fill-opacity",
25
+ "fill-rule",
26
+ "filter",
27
+ "flood-color",
28
+ "flood-opacity",
29
+ "font",
30
+ "font-family",
31
+ "font-size",
32
+ "font-size-adjust",
33
+ "font-stretch",
34
+ "font-style",
35
+ "font-variant",
36
+ "font-weight",
37
+ "glyph-orientation-horizontal",
38
+ "glyph-orientation-vertical",
39
+ "image-rendering",
40
+ "kerning",
41
+ "letter-spacing",
42
+ "lighting-color",
43
+ "marker",
44
+ "marker-end",
45
+ "marker-mid",
46
+ "marker-start",
47
+ "mask",
48
+ "opacity",
49
+ "overflow",
50
+ "pointer-events",
51
+ "shape-rendering",
52
+ "stop-color",
53
+ "stop-opacity",
54
+ "stroke",
55
+ "stroke-dasharray",
56
+ "stroke-dashoffset",
57
+ "stroke-linecap",
58
+ "stroke-linejoin",
59
+ "stroke-miterlimit",
60
+ "stroke-opacity",
61
+ "stroke-width",
62
+ "text-anchor",
63
+ "text-decoration",
64
+ "text-rendering",
65
+ "unicode-bidi",
66
+ "visibility",
67
+ "word-spacing",
68
+ "writing-mode"
69
+ ],
70
+ "#SVGFilterPrimitiveAttrs": ["x", "y", "width", "height"]
71
+ },
72
+ "attributes": {
73
+ "x": {
74
+ "ref": "https://drafts.fxtf.org/css-masking/#element-attrdef-mask-x",
9
75
  "defaultValue": "-10%"
10
76
  },
11
- {
12
- "name": "y",
77
+ "y": {
78
+ "ref": "https://drafts.fxtf.org/css-masking/#element-attrdef-mask-y",
13
79
  "defaultValue": "-10%"
14
80
  },
15
- {
16
- "name": "width",
17
- "type": ["SVGLength", "SVGPercentage"],
81
+ "width": {
82
+ "ref": "https://drafts.fxtf.org/css-masking/#element-attrdef-mask-width",
18
83
  "defaultValue": "120%"
19
84
  },
20
- {
21
- "name": "height",
22
- "type": ["SVGLength", "SVGPercentage"],
85
+ "height": {
86
+ "ref": "https://drafts.fxtf.org/css-masking/#element-attrdef-mask-height",
23
87
  "defaultValue": "120%"
24
88
  },
25
- {
26
- "name": "maskUnits",
89
+ "maskUnits": {
90
+ "ref": "https://drafts.fxtf.org/css-masking/#element-attrdef-mask-maskunits",
27
91
  "type": {
28
- "enum": ["userSpaceOnUse", "objectBoundingBox"]
92
+ "enum": ["userSpaceOnUse", "objectBoundingBox"],
93
+ "disallowToSurroundBySpaces": false
29
94
  },
30
- "defaultValue": "objectBoundingBox"
95
+ "defaultValue": "objectBoundingBox",
96
+ "animatable": true
31
97
  },
32
- {
33
- "name": "maskContentUnits",
98
+ "maskContentUnits": {
99
+ "ref": "https://drafts.fxtf.org/css-masking/#element-attrdef-mask-maskcontentunits",
34
100
  "type": {
35
101
  "enum": ["userSpaceOnUse", "objectBoundingBox"]
36
102
  },
37
- "defaultValue": "userSpaceOnUse"
103
+ "defaultValue": "userSpaceOnUse",
104
+ "animatable": true
38
105
  }
39
- ]
106
+ }
40
107
  }
@@ -1,15 +1,88 @@
1
1
  {
2
2
  "tag": "mesh",
3
- "attributes": [
4
- "#ariaAttrs",
5
- "#SVGCoreAttrs",
6
- "#SVGConditionalProcessingAttrs",
7
- "#SVGGlobalEventAttrs",
8
- "#SVGGraphicalEventAttrs",
9
- "#SVGPresentationAttrs",
10
- {
11
- "name": "href",
3
+ "ref": "https://www.w3.org/TR/2016/CR-SVG2-20160915/shapes.html#MeshElement",
4
+ "global": {
5
+ "#HTMLGlobalAttrs": true,
6
+ "#GlobalEventAttrs": true,
7
+ "#DocumentElementEventAttrs": true,
8
+ "#ARIAAttrs": true,
9
+ "#SVGCoreAttrs": ["id", "tabindex", "lang", "xml:space"],
10
+ "#SVGConditionalProcessingAttrs": ["requiredExtensions", "systemLanguage"],
11
+ "#SVGPresentationAttrs": [
12
+ "alignment-baseline",
13
+ "baseline-shift",
14
+ "clip",
15
+ "clip-path",
16
+ "clip-rule",
17
+ "color",
18
+ "color-interpolation",
19
+ "color-interpolation-filters",
20
+ "color-rendering",
21
+ "cursor",
22
+ "direction",
23
+ "display",
24
+ "dominant-baseline",
25
+ "enable-background",
26
+ "fill",
27
+ "fill-opacity",
28
+ "fill-rule",
29
+ "filter",
30
+ "flood-color",
31
+ "flood-opacity",
32
+ "font",
33
+ "font-family",
34
+ "font-size",
35
+ "font-size-adjust",
36
+ "font-stretch",
37
+ "font-style",
38
+ "font-variant",
39
+ "font-weight",
40
+ "glyph-orientation-horizontal",
41
+ "glyph-orientation-vertical",
42
+ "image-rendering",
43
+ "isolation",
44
+ "kerning",
45
+ "letter-spacing",
46
+ "lighting-color",
47
+ "marker",
48
+ "marker-end",
49
+ "marker-mid",
50
+ "marker-start",
51
+ "mask",
52
+ "mask-type",
53
+ "opacity",
54
+ "overflow",
55
+ "paint-order",
56
+ "pointer-events",
57
+ "shape-rendering",
58
+ "stop-color",
59
+ "stop-opacity",
60
+ "stroke",
61
+ "stroke-dasharray",
62
+ "stroke-dashoffset",
63
+ "stroke-linecap",
64
+ "stroke-linejoin",
65
+ "stroke-miterlimit",
66
+ "stroke-opacity",
67
+ "stroke-width",
68
+ "text-anchor",
69
+ "text-decoration",
70
+ "text-overflow",
71
+ "text-rendering",
72
+ "transform",
73
+ "transform-origin",
74
+ "unicode-bidi",
75
+ "vector-effect",
76
+ "visibility",
77
+ "white-space",
78
+ "word-spacing",
79
+ "writing-mode"
80
+ ]
81
+ },
82
+ "attributes": {
83
+ "href": {
84
+ "ref": "https://www.w3.org/TR/2016/CR-SVG2-20160915/shapes.html#MeshElementHrefAttribute",
12
85
  "type": "URL"
13
86
  }
14
- ]
87
+ }
15
88
  }
@@ -1,40 +1,33 @@
1
1
  {
2
2
  "tag": "meshgradient",
3
- "attributes": [
4
- "#SVGCoreAttrs",
5
- "#SVGGlobalEventAttrs",
6
- "#SVGPresentationAttrs",
7
- {
8
- "name": "x",
9
- "type": ["SVGLength", "SVGPercentage"],
10
- "defaultValue": "0%"
11
- },
12
- {
13
- "name": "y",
14
- "type": ["SVGLength", "SVGPercentage"],
15
- "defaultValue": "0%"
16
- },
17
- {
18
- "name": "gradientUnits",
3
+ "ref": "https://www.w3.org/TR/2016/CR-SVG2-20160915/pservers.html#MeshElement",
4
+ "global": {
5
+ "#SVGCoreAttrs": ["id", "tabindex", "lang", "xml:space", "class", "style"],
6
+ "#GlobalEventAttrs": true,
7
+ "#SVGPresentationAttrs": ["x", "y", "transform"]
8
+ },
9
+ "attributes": {
10
+ "gradientUnits": {
11
+ "ref": "https://www.w3.org/TR/2016/CR-SVG2-20160915/pservers.html#MeshGradientElementGradientUnitsAttribute",
19
12
  "type": {
20
- "enum": ["userSpaceOnUse", "objectBoundingBox"]
13
+ "enum": ["userSpaceOnUse", "objectBoundingBox"],
14
+ "disallowToSurroundBySpaces": false
21
15
  },
22
- "defaultValue": "objectBoundingBox"
23
- },
24
- {
25
- "name": "transform",
26
- "type": "CSSTransformList"
16
+ "defaultValue": "objectBoundingBox",
17
+ "animatable": true
27
18
  },
28
- {
29
- "name": "href",
30
- "type": "URL"
19
+ "href": {
20
+ "ref": "https://www.w3.org/TR/2016/CR-SVG2-20160915/pservers.html#MeshGradientElementHrefAttribute",
21
+ "type": "URL",
22
+ "animatable": true
31
23
  },
32
- {
33
- "name": "type",
24
+ "type": {
25
+ "ref": "https://www.w3.org/TR/2016/CR-SVG2-20160915/pservers.html#MeshGradientElementTypeAttribute",
34
26
  "type": {
35
- "enum": ["bilinear", "bicubic"]
27
+ "enum": ["bilinear", "bicubic"],
28
+ "disallowToSurroundBySpaces": false
36
29
  },
37
30
  "defaultValue": "bilinear"
38
31
  }
39
- ]
32
+ }
40
33
  }