Skip to content

Commit f1a0384

Browse files
Add width, height, x, y as support by symbol
W3C ISSUE - w3c/svgwg#803 look at https://developer.mozilla.org/en-US/docs/Web/SVG/Element/symbol
1 parent cae05ab commit f1a0384

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

build.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ while (++index < rows2.length) {
128128
}
129129
}
130130

131+
// GITHUB ISSUE - Missing attributes in SVGSymbolElement https://github.com/w3c/svgwg/issues/803
132+
map2.symbol.add('x').add('y').add('width').add('height')
133+
131134
maps.push(map2)
132135

133136
/** @type {Set<string>} */

index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3704,6 +3704,7 @@ export const svgElementAttributes = {
37043704
'font-weight',
37053705
'glyph-orientation-horizontal',
37063706
'glyph-orientation-vertical',
3707+
'height',
37073708
'image-rendering',
37083709
'kerning',
37093710
'letter-spacing',
@@ -3735,8 +3736,11 @@ export const svgElementAttributes = {
37353736
'unicode-bidi',
37363737
'viewBox',
37373738
'visibility',
3739+
'width',
37383740
'word-spacing',
3739-
'writing-mode'
3741+
'writing-mode',
3742+
'x',
3743+
'y'
37403744
],
37413745
tbreak: [
37423746
'requiredExtensions',

0 commit comments

Comments
 (0)