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

Adding SVG attributes as properties

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 24 Jan 2013 16:11:23 -0800
Message-ID: <CAAWBYDDQ3q9Tqeq25KJU8xyMGbTFJipWN-Yte4t7W5YeA2v4rQ@mail.gmail.com>
To: www-style list <www-style@w3.org>
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?

Received on Friday, 25 January 2013 00:12:11 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 11 February 2015 12:35:21 UTC