<script>
	let offsetWidth;
</script>

<svg>
	<text bind:offsetWidth>some text</text>
</svg>