[whatwg] Stroking algorithm in Canvas 2d

Rik Cabanier cabanier at gmail.com
Thu Sep 5 20:48:54 PDT 2013


we've looked over the algorithm in the Canvas spec that describes how
strokes are computed. [1]
We think that this section is making some incorrect assumptions. For
instance, the dashes are calculated over the total lenght of all subpaths,
but each subpath should be treated separately.

It's also a bit strange that the spec is trying to describe how to stroke.
For instance, it goes in minute detail on how dashes are applied but the
hardest part of stroking ("inflating the paths in path perpendicular to the
direction") is not described at all. Wouldn't it be better to remove all
these steps and simply show the desired effect?

If not, what would be the best way to fix the wording? The mailing list or
a bug?


More information about the whatwg mailing list