W3C home > Mailing lists > Public > www-svg@w3.org > October 2010

Re: Accessing the animated position of an SVG element

From: ddailey <ddailey@zoominternet.net>
Date: Sun, 24 Oct 2010 11:19:51 -0400
Message-ID: <9192EA8244ED45AC9260F548BE32D96D@disxgdg31szkx7>
To: <www-svg@w3.org>
Hi Cameron!

You wrote:
"The transform due to the current motion animation is not exposed
anywhere in the SVG DOM, as far as I'm aware.  I think the best you
could do is to wrap the <rect> in a <g> and then call getBBox() on the

and pointed to the nice little example at  http://mcc.id.au/temp/motion-bbox.svg

In this example running in Webkit (Safari 5 and Chrome) 
the x attribute of the object when clicked is exposed, but I assume this is a bug (since it behaves much more like I expected in FF4, Opera and IE/ASV where it isn't exposed).

Can we turn the Chrome behavior into a feature though? There are lots of times when folks would like to know where something is without having to wrap it in a g. Although, I suppose wrapping in a <g> will work for most cases as the original poster acknowledged.

Received on Sunday, 24 October 2010 15:20:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:29 UTC