Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify stroke-dashoffset negative value calculation #795

Open
vincerubinetti opened this issue Apr 30, 2020 · 0 comments
Open

Clarify stroke-dashoffset negative value calculation #795

vincerubinetti opened this issue Apr 30, 2020 · 0 comments

Comments

@vincerubinetti
Copy link

vincerubinetti commented Apr 30, 2020

Spec section: stroke-dashoffset

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant