W3C home > Mailing lists > Public > public-html-a11y@w3.org > June 2011

Re: hit testing and retained graphics

From: Charles McCathieNevile <chaals@opera.com>
Date: Mon, 27 Jun 2011 13:20:44 +0200
To: "Richard Schwerdtfeger" <schwer@us.ibm.com>, "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: "Cameron McCormack" <cam@mcc.id.au>, "Charles Pritchard" <chuck@jumis.com>, "Cynthia Shelly" <cyns@microsoft.com>, david.bolter@gmail.com, "Frank Olivier" <Frank.Olivier@microsoft.com>, Mike@w3.org, public-canvas-api@w3.org, public-html@w3.org, public-html-a11y@w3.org
Message-ID: <op.vxqe4ucswxe0ny@widsith.local>
On Thu, 23 Jun 2011 22:28:32 +0200, Tab Atkins Jr. <jackalmage@gmail.com>  

> On Thu, Jun 23, 2011 at 12:56 PM, Richard Schwerdtfeger
> <schwer@us.ibm.com> wrote:
>>> So normally, I imagine, hit testing would be done either by using
>>> isPointInPath() or by custom code looking at a mouse event’s x/y  
>>> values.
>>> I think this proposal doesn’t work with isPointInPath(), though, is  
>>> that
>>> right?
>> I think it would but we would need to incorporate Z order and a notion  
>> of the last drawn element to compute which element is on top. The user  
>> agent would need to manage this.
> You are attempting to recreate a retained-mode API in an
> immediate-mode API.  Why is "use SVG" not sufficient for this?

Because people don't - they use canvas instead. If that were not the case,  
the whole effort to specify canvas would be solving a theoretical problem.

Given that there is canvas content, and that it is often interactive, you  
can make it possible to make it accessible, or tell people "you better  
hope that somebody bothers to make an equivalent version in a different  
technology". The former is hard work, and only likely to happen in a very  
few cases. The latter is much harder, and only likely to happen in a small  
fraction of the cases it would be done for the former.



Charles McCathieNevile  Opera Software, Standards Group
     je parle français -- hablo español -- jeg lærer norsk
http://my.opera.com/chaals       Try Opera: http://www.opera.com
Received on Monday, 27 June 2011 11:21:48 UTC

This archive was generated by hypermail 2.4.0 : Friday, 20 January 2023 19:59:02 UTC