<script>
if (window.testRunner)
testRunner.dumpAsText();
</script>
<p>This test passes if it doesn't crash.</p>
<p style="text-indent: calc(25s - 3px + 12.5%*2)">X</p>