ladybird/Tests/LibWeb/Screenshot/input/canvas-fillstyle-opacity.html
Psychpsyo a5a84159a3 Meta: Add DOCTYPEs to sceenshot tests
input-placeholder-ref was modified because the input box ends up
being slightly wider outside of quirks mode.
2025-03-20 11:50:49 +01:00

20 lines
446 B
HTML

<!DOCTYPE html>
<link rel="match" href="../expected/canvas-fillstyle-opacity-ref.html" />
<style>
* {
margin: 0;
}
body {
background-color: white;
}
</style>
<canvas id="myCanvas" width="200" height="200"></canvas>
<script>
const canvas = document.getElementById('myCanvas');
const ctx = canvas.getContext('2d');
ctx.fillStyle = 'rgba(0, 0, 255, 0.5)';
ctx.fillRect(50, 50, 100, 100);
</script>