Re: [svgwg] Potentially invalid value for dasharray (#642)

> It should be:
> `<dasharray> = [ <length> | <percentage> | <number> ]# | [ <length> | <percentage> | <number> ]*`

Not quite, as we can have
`document.body.style.strokeDasharray = '1 2, 3 4,5,6, 7 8'`;
`document.body.style.strokeDasharray === "1, 2, 3, 4, 5, 6, 7, 8"`
`getComputedStyle(document.body).strokeDasharray === "1px, 2px, 3px, 4px, 5px, 6px, 7px, 8px"`

`#*` is custom notation not defined by CSS Values 3. If it was necessary to stick with CSS Values 3 notation, we would need
`<dasharray> = [ [ <length> | <percentage> | <number> ]* ]#`
but that might incorrectly suggest that the distinction between whitespace and commas is meaningful.



-- 
GitHub Notification of comment by ewilligers
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/642#issuecomment-460517152 using your GitHub account

Received on Tuesday, 5 February 2019 05:24:21 UTC