resize-observer
resize-observer copied to clipboard
ContentRect has incorrect width/height for non SVG Elements
Based on the spec, the contentRect
is the size of the content area. This should minus the padding and border dimensions from the width/height properties, when box-sizing:border-box
is applied.
You can confirm this by using the native
ResizeObserver
in Chrome.