W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2014

[whatwg] Hit regions: exception when the region has no pixels

From: Rik Cabanier <cabanier@gmail.com>
Date: Wed, 2 Jul 2014 23:10:24 +0200
Message-ID: <CAGN7qDAOMjVKgGGr56iYcNT_b2nw3nrSg4EsNMcvdryngjeyvw@mail.gmail.com>
To: "whatwg@whatwg.org" <whatwg@whatwg.org>
The canvas spec [1] currently states:

If any of the following conditions are met, throw a NotSupportedError
exception and abort these steps:


The specified pixels has no pixels.

Since the specified pixels are the union of the clipping path and the
current path, it will be nearly impossible for an author to determine if a
hit region has no pixels.
Can't we relax this requirement and simply not set up a new hit region if
there are no pixels?

Received on Wednesday, 2 July 2014 21:10:53 UTC

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