1
0
Fork 0
firefox/testing/web-platform/tests/css/css-sizing/canvas-intrinsic-dynamic.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

16 lines
693 B
HTML

<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-sizing-3/#intrinsic">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<meta name="assert" content="This test checks that a dynamic change in the intrinsic size of a canvas element correctly changes the intrinsic size of a parent." />
<body style="position: relative;">
<p>Test passes if there is a filled green square.</p>
<div style="position: absolute; background: green; line-height: 0;">
<canvas id="target"></canvas>
</div>
</body>
<script>
document.body.offsetTop;
const target = document.getElementById('target');
target.width = '100';
target.height = '100';
</script>