<!DOCTYPE html>
<pre id="log"></pre>
<script>
    if (window.testRunner && window.internals) {
        testRunner.dumpAsText();
        document.body.offsetTop;
        const layoutCountBefore = internals.layoutCount;
        document.documentElement.style.fontSizeAdjust = 'none';
        document.body.offsetTop;
        log.textContent = `Layout count: ${internals.layoutCount - layoutCountBefore}`;
    }
</script>