W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2013

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

From: Justin Novosad <junov@google.com>
Date: Fri, 20 Sep 2013 14:40:24 -0400
Message-ID: <CABpaAqTCJD-idcS9qYGgFxb4-7Bi7B84R-Pm1hNh-zyEUr9=sw@mail.gmail.com>
To: Simon Sarris <simon.sarris@gmail.com>
Cc: WHATWG List <whatwg@whatwg.org>
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:09 UTC