summaryrefslogtreecommitdiffstats
path: root/layout/reftests/display-list/1443027-3.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /layout/reftests/display-list/1443027-3.html
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/display-list/1443027-3.html')
-rw-r--r--layout/reftests/display-list/1443027-3.html91
1 files changed, 91 insertions, 0 deletions
diff --git a/layout/reftests/display-list/1443027-3.html b/layout/reftests/display-list/1443027-3.html
new file mode 100644
index 0000000000..87972a5941
--- /dev/null
+++ b/layout/reftests/display-list/1443027-3.html
@@ -0,0 +1,91 @@
+<!DOCTYPE html>
+<html lang="en" class="reftest-wait"><head>
+<meta http-equiv="content-type" content="text/html; charset=UTF-8"><meta charset="utf-8">
+<title>Bug 1443027 - Test merging across multiple paints</title>
+
+<style>
+
+body { opacity: 0.9; }
+
+div {
+ position: absolute;
+}
+
+#A {
+ left: 250px;
+ top: 50px;
+ width: 100px;
+ height: 100px;
+ background-color: red;
+}
+
+#B {
+ left: 200px;
+ top: 0px;
+ width: 100px;
+ height: 100px;
+ background-color: yellow;
+}
+
+#C {
+ left: 0px;
+ top: 0px;
+ width: 100px;
+ height: 100px;
+ background-color: green;
+}
+
+#D {
+ left: 80px;
+ top: 20px;
+ width: 140px;
+ height: 100px;
+ background-color: blue;
+}
+
+</style>
+</head>
+<body>
+<div id="A"></div>
+<div id="B"></div>
+<div id="D"></div>
+<div id="C"></div>
+
+<script>
+
+var A = document.getElementById("A");
+var B = document.getElementById("B");
+var C = document.getElementById("C");
+var D = document.getElementById("D");
+
+A.style.visibility = "hidden";
+B.style.visibility = "hidden";
+C.style.visibility = "hidden";
+D.style.visibility = "hidden";
+
+window.addEventListener("MozReftestInvalidate", step1);
+
+function step1() {
+ A.style.visibility = "visible";
+ A.style.transform = "translatez(1px)";
+
+ window.requestAnimationFrame(function() { window.requestAnimationFrame(step2); });
+}
+
+function step2() {
+ C.style.visibility = "visible";
+ C.style.transform = "translatez(1px)";
+ D.style.visibility = "visible";
+ D.style.transform = "translatez(1px)";
+
+ window.requestAnimationFrame(step3);
+}
+
+function step3() {
+ B.style.visibility = "visible";
+ B.style.transform = "translatez(1px)";
+ document.documentElement.removeAttribute('class');
+}
+
+</script>
+</body></html>