Re: [whatwg] Canvas - Somewhat inconsistent rules in the spec for drawImage

On Fri, Sep 20, 2013 at 2:16 PM, Simon Sarris <simon.sarris@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.

Received on Friday, 20 September 2013 18:40:50 UTC