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

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?

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

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