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.