[html5] Help Digest, Vol 60, Issue 1

Jonathan Zuckerman j.zuckerman at gmail.com
Tue Sep 11 16:29:14 PDT 2012


On Tue, Sep 11, 2012 at 3:02 PM, <help-request at lists.whatwg.org> wrote:

> Send Help mailing list submissions to
>         help at lists.whatwg.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.whatwg.org/listinfo.cgi/help-whatwg.org
> or, via email, send a message with subject or body 'help' to
>         help-request at lists.whatwg.org
>
> You can reach the person managing the list at
>         help-owner at lists.whatwg.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Help digest..."
>
>
> Today's Topics:
>
>    1. Why HTML5 deprecated percentage defined coords<area>?
>       (Stefano Gargiulo)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 11 Sep 2012 20:54:19 +0200
> From: Stefano Gargiulo <rastrano at gmail.com>
> To: help at lists.whatwg.org
> Subject: [html5] Why HTML5 deprecated percentage defined coords<area>?
> Message-ID:
>         <
> CADJHuJCzTj63dK6xdLHVAHvCDKCCuxfWyG8vHnHMaeiTbnwxSw at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
>  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.html
> >
>
> ------------------------------
>
> _______________________________________________
> Help mailing list
> Help at lists.whatwg.org
> http://lists.whatwg.org/listinfo.cgi/help-whatwg.org
>
>
> End of Help Digest, Vol 60, Issue 1
> ***********************************
>
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:
https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfills
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/help-whatwg.org/attachments/20120911/c2edd523/attachment-0001.htm>


More information about the Help mailing list