summaryrefslogtreecommitdiffstats
path: root/layout/reftests/invalidation/scroll-inactive-layers.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/invalidation/scroll-inactive-layers.html
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/invalidation/scroll-inactive-layers.html')
-rw-r--r--layout/reftests/invalidation/scroll-inactive-layers.html81
1 files changed, 81 insertions, 0 deletions
diff --git a/layout/reftests/invalidation/scroll-inactive-layers.html b/layout/reftests/invalidation/scroll-inactive-layers.html
new file mode 100644
index 0000000000..94d7c05196
--- /dev/null
+++ b/layout/reftests/invalidation/scroll-inactive-layers.html
@@ -0,0 +1,81 @@
+<!DOCTYPE html>
+<html class="reftest-wait"
+ reftest-displayport-x="0"
+ reftest-displayport-y="0"
+ reftest-displayport-w="800"
+ reftest-displayport-h="1000">
+<title>Scrolling over inactive layers shouldn't repaint their contents</title>
+
+<style>
+
+.outer {
+ border: 1px solid black;
+ width: 100px;
+ height: 2000px;
+ margin-top: 200px;
+ margin-right: 20px;
+ padding-top: 100px;
+ float: left;
+}
+
+.opacity {
+ opacity: 0.5;
+}
+
+.transform {
+ transform: translateX(1px);
+}
+
+.filter {
+ filter: url(#filter);
+}
+
+.mask {
+ mask: url(#mask);
+}
+
+.reftest-no-paint {
+ height: 50px;
+ border: 1px solid lime;
+}
+
+</style>
+
+<svg height="0">
+ <defs>
+ <filter id="filter" filterUnits="objectBoundingBox"
+ x="0%" y="0%" width="100%" height="100%"
+ color-interpolation-filters="sRGB">
+ <feMerge><feMergeNode/><feMerge>
+ </filter>
+ <mask id="mask" maskContentUnits="objectBoundingBox">
+ <rect x="0" y="0" width="1" height="1" fill="white"/>
+ </mask>
+ </defs>
+</svg>
+
+<div class="outer opacity">
+ <div class="reftest-no-paint"></div>
+</div>
+
+<div class="outer transform">
+ <div class="reftest-no-paint"></div>
+</div>
+
+<div class="outer filter">
+ <div class="reftest-no-paint"></div>
+</div>
+
+<div class="outer mask">
+ <div class="reftest-no-paint"></div>
+</div>
+
+<script>
+
+function doTest() {
+ document.documentElement.scrollTop = 100;
+ document.documentElement.removeAttribute("class");
+}
+document.addEventListener("MozReftestInvalidate", doTest);
+
+</script>