summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-paint-api/top-level-await-ref.html
blob: b135021a0a13bb8c8b0116ff33ca5dc49248e548 (plain)
1
2
3
4
5
6
7
8
9
10
<!DOCTYPE html>
<canvas id="output" width="100" height="100" style="background: blue;"></canvas>
<script>
"use strict";
const canvas = document.getElementById('output');
const ctx = canvas.getContext('2d');

ctx.fillStyle = 'green';
ctx.fillRect(0, 0, 100, 100);
</script>