1
0
Fork 0
firefox/testing/web-platform/tests/css/css-paint-api/paint2d-imageSmoothingQuality.low-ref.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

14 lines
417 B
HTML

<!DOCTYPE html>
<canvas id="canvas" width="300" height="300"></canvas>
<script>
const canvas = document.getElementById('canvas');
const ctx = canvas.getContext('2d');
ctx.imageSmoothingQuality = 'low';
ctx.fillStyle = 'green';
ctx.fillRect(0, 0, 300, 300);
const image = new Image();
image.src = './resources/html5.png';
image.onload = () => {
ctx.drawImage(image, 0, 0, 200, 200);
};
</script>