summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-paint-api/dynamic-import-ref.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-paint-api/dynamic-import-ref.html')
-rw-r--r--testing/web-platform/tests/css/css-paint-api/dynamic-import-ref.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-paint-api/dynamic-import-ref.html b/testing/web-platform/tests/css/css-paint-api/dynamic-import-ref.html
new file mode 100644
index 0000000000..6c598aee39
--- /dev/null
+++ b/testing/web-platform/tests/css/css-paint-api/dynamic-import-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>