Skip to content

Commit 035da2e

Browse files
committed
Fix value definition of the "d" property
Based on w3c/svgwg#320 and most if not all browser implementations.
1 parent ca83761 commit 035da2e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/properties/definitions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2404,7 +2404,7 @@ module.exports = {
24042404
},
24052405
serialized: 'none',
24062406
},
2407-
value: 'none | <string>',
2407+
value: 'none | path(<string>)',
24082408
},
24092409
'direction': {
24102410
animate: false,

scripts/extract.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ const replaced = {
7373
'clip': { value: 'rect([<length> | auto]{4} | [<length> | auto]#{4}) | auto' },
7474
// TODO: fix `value` of `copy-into`
7575
'copy-into': { value: 'none | [<custom-ident> <content-level>]#' },
76+
// https://github.com/w3c/svgwg/issues/320
77+
'd': { value: 'none | path(<string>)' },
7678
// TODO: fix `value` of `fill-opacity`, `stroke-opacity`
7779
'fill-opacity': { value: "<'opacity'>" },
7880
'stroke-opacity': { value: "<'opacity'>" },

0 commit comments

Comments
 (0)