1
0
Fork 0
firefox/testing/web-platform/tests/css/css-sizing/aspect-ratio/replaced-element-017.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

18 lines
654 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<title>CSS aspect-ratio: canvas</title>
<link rel="author" title="Mozilla" href="https://www.mozilla.org/">
<link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio">
<link rel="match" href="reference/ref-filled-green-100x20-rect.html" />
<canvas width=200 height=200 style='width:100px; aspect-ratio:5/1;'></canvas>
<script>
window.onload = function() {
const canvas = document.querySelector('canvas');
const ctx = canvas.getContext('2d');
ctx.fillStyle = 'green';
ctx.fillRect(0, 0, 200, 200);
document.documentElement.removeAttribute('class');
}
</script>
</html>