[svgwg] Issue: Clarify stroke-dashoffset negative value calculation (#795) marked as Needs tests

karlcow has just labeled an issue for https://github.com/w3c/svgwg as "Needs tests":

== 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

See https://github.com/w3c/svgwg/issues/795


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 5 January 2026 02:47:19 UTC