summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-paint-api/setTransform-ref.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-paint-api/setTransform-ref.html')
-rw-r--r--testing/web-platform/tests/css/css-paint-api/setTransform-ref.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-paint-api/setTransform-ref.html b/testing/web-platform/tests/css/css-paint-api/setTransform-ref.html
new file mode 100644
index 0000000000..e969ba034a
--- /dev/null
+++ b/testing/web-platform/tests/css/css-paint-api/setTransform-ref.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<body>
+<canvas id ="canvas" width="200" height="200"></canvas>
+<script>
+var ctx = document.getElementById('canvas').getContext('2d');
+ctx.fillStyle = 'green';
+let m = ctx.getTransform();
+m.a = 2;
+m.d = 2;
+ctx.setTransform(m);
+ctx.fillRect(0, 0, 50, 50);
+</script>
+</body>
+</html>