On Tue, Sep 11, 2012 at 3:02 PM,  <span dir="ltr"><<a href="mailto:help-request@lists.whatwg.org" target="_blank">help-request@lists.whatwg.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Send Help mailing list submissions to<br>
        <a href="mailto:help@lists.whatwg.org">help@lists.whatwg.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.whatwg.org/listinfo.cgi/help-whatwg.org" target="_blank">http://lists.whatwg.org/listinfo.cgi/help-whatwg.org</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:help-request@lists.whatwg.org">help-request@lists.whatwg.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:help-owner@lists.whatwg.org">help-owner@lists.whatwg.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Help digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Why HTML5 deprecated percentage defined coords<area>?<br>
      (Stefano Gargiulo)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 11 Sep 2012 20:54:19 +0200<br>
From: Stefano Gargiulo <<a href="mailto:rastrano@gmail.com">rastrano@gmail.com</a>><br>
To: <a href="mailto:help@lists.whatwg.org">help@lists.whatwg.org</a><br>
Subject: [html5] Why HTML5 deprecated percentage defined coords<area>?<br>
Message-ID:<br>
        <<a href="mailto:CADJHuJCzTj63dK6xdLHVAHvCDKCCuxfWyG8vHnHMaeiTbnwxSw@mail.gmail.com">CADJHuJCzTj63dK6xdLHVAHvCDKCCuxfWyG8vHnHMaeiTbnwxSw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
 <a href="https://developer.mozilla.org/en-US/docs/HTML/Element/area" target="_blank">https://developer.mozilla.org/en-US/docs/HTML/Element/area</a><br>
<br>
> *coords<br>
> *A set of values specifying the coordinates of the hot-spot region. The<br>
> number and meaning of the values depend upon the value specified for the *<br>
> shape* attribute. For a rect or rectangle shape, the *coords* value is<br>
> two x,y pairs: left, top, right, and bottom. For a circle shape, the<br>
> value is x,y,r where x,y is a pair specifying the center of the circle<br>
> and r is a value for the radius. For a poly or polygon< shape, the value<br>
> is a set of x,y pairs for each point in the polygon: x1,y1,x2,y2,x3,y3,and<br>
> so on. I<br>
> *In HTML4, the values are numbers of pixels or percentages, if a percent<br>
> sign (%) is appended; in HTML5, the values are numbers of CSS pixels.*<br>
><br>
<br>
<br>
Why HTML5 deprecated percentage coords definition in the area tag?<br>
<br>
I'm not the only one who see this as a de-improvement (he see it as a Bug):<br>
<br>
<a href="http://home.comcast.net/~urbanjost/IMG/resizeimg4.html" target="_blank">http://home.comcast.net/~urbanjost/IMG/resizeimg4.html</a><br>
<br>
Now I've to say, i don't like <area> and <map> and i now is obsolete stuff,<br>
so i'm happy if they will be deprecated soon, but I think we need some pure<br>
DOM solution to draw polygons.<br>
<br>
In my case, I'm trying to implement a pure DOM  clickable pie-slices (not<br>
with Canvas or SVG just because it need to be a cross browser app).<br>
<br>
So I did it in the easiest way: images for slices and the old fashioned<br>
<area> tag....<br>
<br>
but... i've fluid images with size in percentage.<br>
<br>
Best regards,<br>
Stefano.<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.whatwg.org/pipermail/help-whatwg.org/attachments/20120911/d353c060/attachment.html" target="_blank">http://lists.whatwg.org/pipermail/help-whatwg.org/attachments/20120911/d353c060/attachment.html</a>><br>


<br>
------------------------------<br>
<br>
_______________________________________________<br>
Help mailing list<br>
<a href="mailto:Help@lists.whatwg.org">Help@lists.whatwg.org</a><br>
<a href="http://lists.whatwg.org/listinfo.cgi/help-whatwg.org" target="_blank">http://lists.whatwg.org/listinfo.cgi/help-whatwg.org</a><br>
<br>
<br>
End of Help Digest, Vol 60, Issue 1<br>
***********************************<br>
</blockquote></div>Stefano - I can't speak for the <area> and <map> tags as I have no experience with them, but SVG really seems like the ideal technology here.  As a viable alternative to your now-invalid percentage based coordinates, you might consider polyfilling SVG in browsers that don't support it: <a href="https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfills">https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfills</a>