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

[whatwg] hit regions: effect of clearRect

From: Rik Cabanier <cabanier@gmail.com>
Date: Mon, 10 Mar 2014 17:25:06 -0700
Message-ID: <CAGN7qDARLanEFKaPC3cp5WGTh+C6zaHWneVhSJsTdh5X46jo8Q@mail.gmail.com>
To: "whatwg@whatwg.org" <whatwg@whatwg.org>
clearRect is currently defined as a subtraction mechanism for hit regions
It's unlikely that a UA will implement hit regions using pixels so this
would have to be done using path subtraction which is expensive.

Why was this special behavior added to clearRect? Hit regions are not
subject to other operations such as clipping...

Received on Tuesday, 11 March 2014 00:25:31 UTC

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