[html5] Why HTML5 deprecated percentage defined coords<area>?

Ian Hickson ian at hixie.ch
Thu Dec 13 14:48:13 PST 2012

On Tue, 11 Sep 2012, Stefano Gargiulo wrote:
>  https://developer.mozilla.org/en-US/docs/HTML/Element/area
> > *coords
> > *A set of values specifying the coordinates of the hot-spot region. The
> > number and meaning of the values depend upon the value specified for the *
> > shape* attribute. For a rect or rectangle shape, the *coords* value is
> > two x,y pairs: left, top, right, and bottom. For a circle shape, the
> > value is x,y,r where x,y is a pair specifying the center of the circle
> > and r is a value for the radius. For a poly or polygon< shape, the value
> > is a set of x,y pairs for each point in the polygon: x1,y1,x2,y2,x3,y3,and
> > so on. I
> > *In HTML4, the values are numbers of pixels or percentages, if a percent
> > sign (%) is appended; in HTML5, the values are numbers of CSS pixels.*
> Why HTML5 deprecated percentage coords definition in the area tag?

Because after some 6 years, browsers still hadn't implemented it.

> In my case, I'm trying to implement a pure DOM  clickable pie-slices (not
> with Canvas or SVG just because it need to be a cross browser app).

Since percentages don't work in many browsers, while canvas and SVG do, I 
think I would recommend using canvas or SVG. :-)

(In this case, probably SVG.)

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

More information about the Help mailing list