stdweb
stdweb copied to clipboard
Feature request: Element.{clientWidth,clientHeight}
MDN docs: clientWidth
, clientHeight
These properties are useful for getting the actual width and height of an element as it is displayed on the webpage, and it is the recommended way to properly calculate the visible width/height/aspect of an HTML canvas, since Canvas.{width,height}
doesn't account for changes in size made by CSS.