Skip to content

Commit

Permalink
Fix value definition of the "d" property
Browse files Browse the repository at this point in the history
Based on w3c/svgwg#320 and most if not all browser implementations.
  • Loading branch information
cdoublev committed Oct 11, 2024
1 parent ca83761 commit 035da2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/properties/definitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -2404,7 +2404,7 @@ module.exports = {
},
serialized: 'none',
},
value: 'none | <string>',
value: 'none | path(<string>)',
},
'direction': {
animate: false,
Expand Down
2 changes: 2 additions & 0 deletions scripts/extract.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ const replaced = {
'clip': { value: 'rect([<length> | auto]{4} | [<length> | auto]#{4}) | auto' },
// TODO: fix `value` of `copy-into`
'copy-into': { value: 'none | [<custom-ident> <content-level>]#' },
// https://github.com/w3c/svgwg/issues/320
'd': { value: 'none | path(<string>)' },
// TODO: fix `value` of `fill-opacity`, `stroke-opacity`
'fill-opacity': { value: "<'opacity'>" },
'stroke-opacity': { value: "<'opacity'>" },
Expand Down

0 comments on commit 035da2e

Please sign in to comment.