W3C home > Mailing lists > Public > www-style@w3.org > August 2010

Re: Specifying hit testing in CSS

From: Leif Arne Storset <lstorset@opera.com>
Date: Mon, 23 Aug 2010 17:17:24 +0200
To: "www-style@w3.org" <www-style@w3.org>
Message-ID: <op.vhwcrayftmo5g6@lastorset-laptop>
Simon Fraser <smfr@me.com> skreiv Fri, 20 Aug 2010 17:33:59 +0200

> On Aug 20, 2010, at 8:07 AM, Leif Arne Storset wrote:
>> We would like to see this behavior specified and converging on a  
>> specific
>> behavior. Whether Gecko/WebKit adopt the more sophisticated behavior or  
>> IE
>> and we (Opera) switch to the simpler behavior is not very important to  
>> us,
>> although in general, simpler algorithms are preferred, of course.
> You should also consider how the following affect hit testing,  
> particularly with
> pointer-events: visible.
> * opacity: 0

This hits in Gecko, WebKit, Presto and IE9. 'opacity' is unsupported in  

It would seem logical that 'pointer-events: painted' would not hit a box
with 'opacity: 0'. I am not sure how this works in SVG, though.

> * visibility: hidden

This does not hit in Gecko, WebKit, Presto, and IE.

I suppose you are referring to the 'visible*' values? The interaction with  
'visibility', if any, has not been determined, but Dean Jackson suggested  
not interacting with it, i.e. discarding the 'visible*' properties. We  
don't mind much either way as regards implementation, but as regards  
specification, staying close to the SVG pointer-events is probably  

> * hit outside the border of an element with border-radius

answered by Brad

Leif Arne Storset
Core Technology Developer, Opera Software
Oslo, Norway
Received on Monday, 23 August 2010 15:17:58 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:38 UTC