<script>
	export let w;
	export let h;
</script>

<div bind:offsetWidth={w} bind:offsetHeight={h}>
	some content
</div>