W3C home > Mailing lists > Public > www-svg@w3.org > July 2011

Re: stroke=gradient for lines or horizontal paths

From: Robert Longson <longsonr@gmail.com>
Date: Wed, 13 Jul 2011 13:25:07 +0100
Message-ID: <CAOu7Uv6MSDz1Hh5wV-zc_aZJXcVQnVRW00r9wc7y7uNwZC8oGw@mail.gmail.com>
To: www-svg@w3.org
Alex,

> Which of course begs the question - how do you get
> the bounding box of a stroked object through the DOM?

You can call getBoundingClientRect

https://developer.mozilla.org/en/DOM/element.getBoundingClientRect

This works on IE9 and Firefox. I'm not sure where else it is implemented.

Best regards

Robert
Received on Wednesday, 13 July 2011 12:25:45 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:48 GMT