<script> let offsetWidth = 0; let offsetHeight = 0; </script> <div bind:offsetHeight bind:offsetWidth> <h1>Hello</h1> </div>