why you can't change the offsetheight of element in javascript code example
Example: offsetheight javascript
// The HTMLElement.offsetHeight read-only property returns the height
// of an element, including vertical padding and borders, as an integer.
let intElemOffsetHeight = element.offsetHeight;