Having trouble determining the size of an element within a viewport? I initially used getClientBoundingRect()
to account for applied transforms, but found that the client rect would not exceed the viewport size. I then switched to getBBox()
, only to discover it doesn't work in Firefox. What is the most effective method to accurately obtain an element's size across all browsers?