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

Stefano Gargiulo rastrano at gmail.com
Tue Sep 11 11:54:19 PDT 2012


 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?

I'm not the only one who see this as a de-improvement (he see it as a Bug):

http://home.comcast.net/~urbanjost/IMG/resizeimg4.html

Now I've to say, i don't like <area> and <map> and i now is obsolete stuff,
so i'm happy if they will be deprecated soon, but I think we need some pure
DOM solution to draw polygons.

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).

So I did it in the easiest way: images for slices and the old fashioned
<area> tag....

but... i've fluid images with size in percentage.

Best regards,
Stefano.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/help-whatwg.org/attachments/20120911/d353c060/attachment-0001.htm>


More information about the Help mailing list