W3C home > Mailing lists > Public > www-style@w3.org > January 2013

Re: Adding SVG attributes as properties

From: Brian Kardell <bkardell@gmail.com>
Date: Fri, 25 Jan 2013 08:27:43 -0500
Message-ID: <CADC=+jfe9_ZmxLXp7wGNV7WQH6+vY5s==d7kYbgf8NmAdALx_A@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: www-style list <www-style@w3.org>
On Jan 24, 2013 7:13 PM, "Tab Atkins Jr." <jackalmage@gmail.com> wrote:
> As resolved in the last telcon, we accepted the SVGWG's proposal to
> promote more of their attributes to properties.  Specifically, the
> list we resolved on was:
> cx, cy, dx, dy, fx, fy, height, width, offset, r, rx, ry, x, x1, x2,
> y, y1, y2 and maybe d
> I forgot to include the attribute "points".  This one's nice and easy
> - it's just a list of coordinate pairs.  The grammar would just be "[
> [ <length> | <percentage> ]{2} ]#".
> Unrelated, the only attribute collisions (multiple attributes with the
> same name but different grammars) are "x" and "y", which are single
> <length>s for some attributes and a list of lengths for others.
> heycam brings up the good suggestion of just making the grammar
> "[<length> | <percentage>]#", but having some elements only pay
> attention to the first value and ignore the rest.  This seems like the
> best solution to me.  Anyone else have thoughts on this?
> ~TJ

That seems pretty good to me, simple.

Brian Kardell :: @briankardell :: hitchjs.com
Received on Friday, 25 January 2013 13:28:12 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:25 UTC