W3C home > Mailing lists > Public > public-svg-wg@w3.org > January to March 2013

Re: unit accessors

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 6 Feb 2013 08:20:22 -0700
Message-ID: <CAAWBYDBGxa-exg3P-siHymD8biN0WwnFvEKdKc_AFwxEH4Hy5w@mail.gmail.com>
To: Cameron McCormack <cam@mcc.id.au>
Cc: "public-svg-wg@w3.org" <public-svg-wg@w3.org>
On Tue, Feb 5, 2013 at 10:50 PM, Cameron McCormack <cam@mcc.id.au> wrote:
> In doing ACTION-3414, I've added unit accessors to SVGAnimatedLength, so
> that you can now do:
>   rectElement.x.px = 20;


> I've also added these to SVGAnimatedLengthList, where they reflect the first
> SVGLength in the base value list.  This is so that
>   textElement.x.px = 20;
> will also work.


> One issue: should we have one for percentages, and if so, what should it be
> named?

Let me think on this before you add it - iirc, when CSS adds the same,
it'll need some slightly tricky stuff to make percentages (and other
things that are late-resolved) work correctly, so we should try to be

Received on Wednesday, 6 February 2013 15:21:13 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:20:16 UTC