From 0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel.baumann@progress-linux.org>
Date: Fri, 19 Apr 2024 03:47:29 +0200
Subject: Adding upstream version 115.8.0esr.

Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
---
 layout/reftests/canvas/size-change-1.html | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 layout/reftests/canvas/size-change-1.html

(limited to 'layout/reftests/canvas/size-change-1.html')

diff --git a/layout/reftests/canvas/size-change-1.html b/layout/reftests/canvas/size-change-1.html
new file mode 100644
index 0000000000..afe22d856b
--- /dev/null
+++ b/layout/reftests/canvas/size-change-1.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+<body>
+<canvas width="100" height="100" id="c"></canvas>
+<script>
+var c = document.getElementById("c");
+var ctx = c.getContext("2d");
+ctx.fillStyle = "red";
+ctx.fillRect(0,0,100,100);
+
+function finishTest() {
+  c.width = 200;
+  c.height = 200;
+  ctx.fillStyle = "lime";
+  ctx.fillRect(0,0,200,200);
+
+  document.documentElement.removeAttribute("class");
+}
+window.addEventListener("MozReftestInvalidate", finishTest);
+</script>
+</body>
+</html>
-- 
cgit v1.2.3