diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-paint-api/top-level-await-ref.html')
-rw-r--r-- | testing/web-platform/tests/css/css-paint-api/top-level-await-ref.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-paint-api/top-level-await-ref.html b/testing/web-platform/tests/css/css-paint-api/top-level-await-ref.html new file mode 100644 index 0000000000..b135021a0a --- /dev/null +++ b/testing/web-platform/tests/css/css-paint-api/top-level-await-ref.html @@ -0,0 +1,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> |