Open bramus opened 1 year ago
Some quick checking tells me this is gonna be a tough one:
offsetWidth
and offsetHeight
, which returns undefined. $0.getBBox()
does not seem to produce the correct numbers. They are off by a few pixels when compared to the size Chrome reports. Maybe that could just work though, as they are verrrry close and at least have the correct aspect-ratio.
$0.getClientRects()[0]
E.g. https://cdpn.io/pen/debug/bGORQMM/d1616ec346e06f09d7f34ec667571e2e (forked from https://codepen.io/raphaelgoetter/pen/wvReGKK by @raphaelgoetter to preserve a copy)
The inspected elements don’t have the correct size because
SVGElement
doesn't haveoffsetWidth
/offsetHeight
properties, unlike `HTMLElement.