14 lines
409 B
HTML
14 lines
409 B
HTML
<!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>
|