blob: ec65acd2c4f29105bdc53cd1425281fc6260ca00 [file] [log] [blame]
<!DOCTYPE html>
<pre id=log></pre>
<div id=target style="aspect-ratio: 1 / 2;"></div>
<script>
if (window.testRunner && window.internals) {
testRunner.dumpAsText();
document.body.offsetTop;
const layoutCountBefore = internals.layoutCount;
target.style.color = "blue";
document.body.offsetTop;
log.textContent = `Layout count: ${internals.layoutCount - layoutCountBefore}`;
}
</script>