Re: stroke=gradient for lines or horizontal paths

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 UTC