[whatwg] Stroking algorithm in Canvas 2d

All,

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?

1:
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#trace-a-path

Received on Friday, 6 September 2013 03:49:19 UTC