[svgwg] Clarify stroke-dashoffset negative value calculation (#795)

vincerubinetti has just created a new issue for https://github.com/w3c/svgwg:

== Clarify stroke-dashoffset negative value calculation ==
Spec section: [stroke-dashoffset](https://www.w3.org/TR/SVG2/painting.html#StrokeDashoffsetProperty)

`where s is the sum of the dash array values.`

Does "dash array values" mean the raw values provided in the attribute? Or does it refer to the array of values after being processed, with odd-length arrays being repeated to yield even-length arrays? I assume it is intended to mean the latter, as that would seem to create a smooth "march" of dashes across a path when animating between positive and negative values.

I have a suspicion that this ambiguity may also be the cause behind negative `stroke-dashoffset` "bugs" in Safari, as they think they are following the spec. But Chrome/Firefox sort of see past the literal words in the spec to what was intended.

Impetus for creating this issue:
https://stackoverflow.com/questions/37246113/svg-stroke-dashoffset-not-working-on-safari/61517018#61517018

Disclaimer: I wrote the Stack Overflow and this post very late at night with little sleep, so I may be missing something here. Although regardless, more clarification can't hurt, right.

Please view or discuss this issue at https://github.com/w3c/svgwg/issues/795 using your GitHub account

Received on Thursday, 30 April 2020 06:54:20 UTC