W3C home > Mailing lists > Public > www-style@w3.org > June 2012

Re: Clickable area for hyperlinks

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 14 Jun 2012 12:34:07 -0400
Message-ID: <4FDA127F.6030302@mit.edu>
To: www-style@w3.org
On 6/14/12 12:24 PM, Simon Sapin wrote:
> Le 14/06/2012 11:15, Simon Sapin a écrit :
>> (We make this as high as 'line-height' for inline boxes.)
> This is obviously wrong when an inline <a> element contains an image
> higher than line-height. We’d want the whole image to be included in the
> "hit zone".

That will Just Work due to click events bubbling, no?  As in, the event 
_target_ in this case will be the image, not the <a>.  But the event 
will then bubble up to the <a>.

The "inline boxes" bit mostly matters for purposes of determining when 
the inline box's element is the event target, I would think.

Received on Thursday, 14 June 2012 16:34:37 UTC

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