summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-paint-api/geometry-with-float-size-ref.html
blob: c24a9d7bc0d9dd251186faec68d5bacb15db8c77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<!DOCTYPE html>
<html>
<body>
<canvas id="canvas" width="100.5" height="200.5px"></canvas>
</body>
<script>
var canvas = document.getElementById('canvas');
var context = canvas.getContext('2d');
context.fillStyle = 'green';
context.fillRect(0, 0, 50, 50);
</script>
</html>