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

Clickable area for hyperlinks

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Thu, 14 Jun 2012 11:15:24 +0200
Message-ID: <4FD9ABAC.5060802@kozea.fr>
To: www-style@w3.org

An 'a' HTML element with an 'href' attribute generates an hyperlink. 
When the link activation is pointer-based, where and how big exactly is 
the actionable area? How does this change for the various computed 
values of 'display' for the element? (eg. inline vs. block)

I could not find this in the HTML or CSS specs. In WeasyPrint we picked 
the margin/outer area of each principal box generated by the element. 
(We make this as high as 'line-height' for inline boxes.) This seems to 
match what browsers do.

Iím not sure where this *should* be defined: precise rectangles (for 
visual media) are more in CSSís realm but as far as I know CSS has 
nothing on links. (The css3-hyperlinks module is marked abandoned and 
does not answer this question anyway.)

Simon Sapin
Received on Thursday, 14 June 2012 09:15:56 UTC

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