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
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
use phf::phf_map;

/// A list of svg style and their ident using snake_case
/// [Reference](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute)
pub(super) static SVG_STYLES: phf::Map<&'static str, &'static str> = phf_map! {
        "accent_height" => "accent-height",
        "accumulate" => "accumulate",
        "additive" => "additive",
        "alignment_baseline" => "alignment-baseline",
        "alphabetic" => "alphabetic",
        "amplitude" => "amplitude",
        "arabic_form" => "arabic-form",
        "ascent" => "ascent",
        "attribute_name" => "attributeName",
        "attribute_type" => "attributeType",
        "azimuth" => "azimuth",
        "base_frequency" => "baseFrequency",
        "baseline_shift" => "baseline-shift",
        "baseProfile" => "baseProfile",
        "bbox" => "bbox",
        "begin" => "begin",
        "bias" => "bias",
        "by" => "by",
        "calc_mode" => "calcMode",
        "cap_height" => "cap-height",
        "class" => "class",
        "clip" => "clip",
        "clip_path_units" => "clipPathUnits",
        "clip_path" => "clip-path",
        "clip_rule" => "clip-rule",
        "color" => "color",
        "color_interpolation" => "color-interpolation",
        "color_interpolation_filters" => "color-interpolation-filters",
        "color_profile" => "color-profile",
        "color_rendering" => "color-rendering",
        "content_script_type" => "contentScriptType",
        "content_style_type" => "contentStyleType",
        "crossorigin" => "crossorigin",
        "cursor" => "cursor",
        "cx" => "cx",
        "cy" => "cy",
        "d" => "d",
        "decelerate" => "decelerate",
        "descent" => "descent",
        "diffuse_constant" => "diffuseConstant",
        "direction" => "direction",
        "display" => "display",
        "divisor" => "divisor",
        "dominant_baseline" => "dominant-baseline",
        "dur" => "dur",
        "dx" => "dx",
        "dy" => "dy",
        "edge_mode" => "edgeMode",
        "elevation" => "elevation",
        "enable_background" => "enable-background",
        "end" => "end",
        "exponent" => "exponent",
        "fill" => "fill",
        "fill_opacity" => "fill-opacity",
        "fill_rule" => "fill-rule",
        "filter" => "filter",
        "filter_res" => "filterRes",
        "filter_units" => "filterUnits",
        "flood_color" => "flood-color",
        "flood_opacity" => "flood-opacity",
        "font_family" => "font-family",
        "font_size" => "font-size",
        "font_size_adjust" => "font-size-adjust",
        "font_stretch" => "font-stretch",
        "font_style" => "font-style",
        "font_variant" => "font-variant",
        "font_weight" => "font-weight",
        "format" => "format",
        "from" => "from",
        "fr" => "fr",
        "fx" => "fx",
        "fy" => "fy",
        "g1" => "g1",
        "g2" => "g2",
        "glyph_name" => "glyph-name",
        "glyph_orientation_horizontal" => "glyph-orientation-horizontal",
        "glyph_orientation_vertical" => "glyph-orientation-vertical",
        "glyph_ref" => "glyphRef",
        "gradient_transform" => "gradientTransform",
        "gradient_units" => "gradientUnits",
        "hanging" => "hanging",
        "height" => "height",
        "href" => "href",
        "hreflang" => "hreflang",
        "horiz_adv_x" => "horiz-adv-x",
        "horiz_origin_x" => "horiz-origin-x",
        "id" => "id",
        "ideographic" => "ideographic",
        "image_rendering" => "image-rendering",
        "in" => "in",
        "in2" => "in2",
        "intercept" => "intercept",
        "k" => "k",
        "k1" => "k1",
        "k2" => "k2",
        "k3" => "k3",
        "k4" => "k4",
        "kernel_matrix" => "kernelMatrix",
        "kernel_unit_length" => "kernelUnitLength",
        "kerning" => "kerning",
        "key_points" => "keyPoints",
        "key_splines" => "keySplines",
        "key_times" => "keyTimes",
        "lang" => "lang",
        "length_adjust" => "lengthAdjust",
        "letter_spacing" => "letter-spacing",
        "lighting_color" => "lighting-color",
        "limiting_cone_angle" => "limitingConeAngle",
        "local" => "local",
        "marker_end" => "marker-end",
        "marker_mid" => "marker-mid",
        "marker_start" => "marker-start",
        "marker_height" => "markerHeight",
        "marker_units" => "markerUnits",
        "marker_width" => "markerWidth",
        "mask" => "mask",
        "mask_content_units" => "maskContentUnits",
        "mask_units" => "maskUnits",
        "mathematical" => "mathematical",
        "max" => "max",
        "media" => "media",
        "method" => "method",
        "min" => "min",
        "mode" => "mode",
        "name" => "name",
        "num_octaves" => "numOctaves",
        "offset" => "offset",
        "opacity" => "opacity",
        "operator" => "operator",
        "order" => "order",
        "orient" => "orient",
        "orientation" => "orientation",
        "origin" => "origin",
        "overflow" => "overflow",
        "overline_position" => "overline-position",
        "overline_thickness" => "overline-thickness",
        "panose_1" => "panose-1",
        "paint_order" => "paint-order",
        "path" => "path",
        "path_length" => "pathLength",
        "pattern_content_units" => "patternContentUnits",
        "pattern_transform" => "patternTransform",
        "pattern_units" => "patternUnits",
        "ping" => "ping",
        "pointer_events" => "pointer-events",
        "points" => "points",
        "points_at_x" => "pointsAtX",
        "points_at_y" => "pointsAtY",
        "points_at_z" => "pointsAtZ",
        "preserve_alpha" => "preserveAlpha",
        "preserve_aspect_ratio" => "preserveAspectRatio",
        "primitive_units" => "primitiveUnits",
        "r" => "r",
        "radius" => "radius",
        "referrer_policy" => "referrerPolicy",
        "ref_x" => "refX",
        "ref_y" => "refY",
        "rel" => "rel",
        "rendering_intent" => "rendering-intent",
        "repeat_count" => "repeatCount",
        "repeat_dur" => "repeatDur",
        "required_extensions" => "requiredExtensions",
        "required_features" => "requiredFeatures",
        "restart" => "restart",
        "result" => "result",
        "rotate" => "rotate",
        "rx" => "rx",
        "ry" => "ry",
        "scale" => "scale",
        "seed" => "seed",
        "shape_rendering" => "shape-rendering",
        "slope" => "slope",
        "spacing" => "spacing",
        "specular_constant" => "specularConstant",
        "specular_exponent" => "specularExponent",
        "speed" => "speed",
        "spread_method" => "spreadMethod",
        "start_offset" => "startOffset",
        "std_deviation" => "stdDeviation",
        "stemh" => "stemh",
        "stemv" => "stemv",
        "stitch_tiles" => "stitchTiles",
        "stop_color" => "stop-color",
        "stop_opacity" => "stop-opacity",
        "strikethrough_position" => "strikethrough-position",
        "strikethrough_thickness" => "strikethrough-thickness",
        "string" => "string",
        "stroke" => "stroke",
        "stroke_dasharray" => "stroke-dasharray",
        "stroke_dashoffset" => "stroke-dashoffset",
        "stroke_linecap" => "stroke-linecap",
        "stroke_linejoin" => "stroke-linejoin",
        "stroke_miterlimit" => "stroke-miterlimit",
        "stroke_opacity" => "stroke-opacity",
        "stroke_width" => "stroke-width",
        "style" => "style",
        "surface_scale" => "surfaceScale",
        "system_language" => "systemLanguage",
        "tabindex" => "tabindex",
        "table_values" => "tableValues",
        "target" => "target",
        "target_x" => "targetX",
        "target_y" => "targetY",
        "text_anchor" => "text-anchor",
        "text_decoration" => "text-decoration",
        "text_rendering" => "text-rendering",
        "text_length" => "textLength",
        "to" => "to",
        "transform" => "transform",
        "transform_origin" => "transform-origin",
        "type" => "type",
        "u1" => "u1",
        "u2" => "u2",
        "underline_position" => "underline-position",
        "underline_thickness" => "underline-thickness",
        "unicode" => "unicode",
        "unicode_bidi" => "unicode-bidi",
        "unicode_range" => "unicode-range",
        "units_per_em" => "units-per-em",
        "v_alphabetic" => "v-alphabetic",
        "v_hanging" => "v-hanging",
        "v_ideographic" => "v-ideographic",
        "v_mathematical" => "v-mathematical",
        "values" => "values",
        "vector_effect" => "vector-effect",
        "version" => "version",
        "vert_adv_y" => "vert-adv-y",
        "vert_origin_x" => "vert-origin-x",
        "vert_origin_y" => "vert-origin-y",
        "view_box" => "viewBox",
        "view_target" => "viewTarget",
        "visibility" => "visibility",
        "width" => "width",
        "widths" => "widths",
        "word_spacing" => "word-spacing",
        "writing_mode" => "writing-mode",
        "x" => "x",
        "x_height" => "x-height",
        "x1" => "x1",
        "x2" => "x2",
        "x_channel_selector" => "xChannelSelector",
        "xlink_actuate" => "xlink:actuate",
        "xlink_arcrole" => "xlink:arcrole",
        "xlink_href" => "xlink:href",
        "xlink_role" => "xlink:role",
        "xlink_show" => "xlink:show",
        "xlink_title" => "xlink:title",
        "xlink_type" => "xlink:type",
        "xml_base" => "xml:base",
        "xml_lang" => "xml:lang",
        "xml_space" => "xml:space",
        "y" => "y",
        "y1" => "y1",
        "y2" => "y2",
        "y_channel_selector" => "yChannelSelector",
        "z" => "z",
        "zoom_and_pan" => "zoomAndPan",
};