[whatwg] Canvas - Somewhat inconsistent rules in the spec for drawImage
Justin Novosad
junov at google.com
Fri Sep 20 11:40:24 PDT 2013
On Fri, Sep 20, 2013 at 2:16 PM, Simon Sarris <simon.sarris at gmail.com>wrote:
>
> Anywho, I recommend either considering all zero-sized sources as invalid,
> and perhaps giving a more descriptive error, or simply allowing a
> zero-sized canvas to be a valid drawImage argument so that it may run its
> natural course (draw nothing), just like Image and zero-sized source rect
> arguments.
>
If we do anything, it should be the latter (draw nothing) to avoid breaking
existing apps.
More information about the whatwg
mailing list