summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-scrollbars
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
commit2aa4a82499d4becd2284cdb482213d541b8804dd (patch)
treeb80bf8bf13c3766139fbacc530efd0dd9d54394c /layout/reftests/css-scrollbars
parentInitial commit. (diff)
downloadfirefox-2aa4a82499d4becd2284cdb482213d541b8804dd.tar.xz
firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.zip
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/css-scrollbars')
-rw-r--r--layout/reftests/css-scrollbars/reftest.list2
-rw-r--r--layout/reftests/css-scrollbars/scrollbar-thin-overflow-change-ref.html17
-rw-r--r--layout/reftests/css-scrollbars/scrollbar-thin-overflow-change.html22
-rw-r--r--layout/reftests/css-scrollbars/viewport-scrollbar-color-change-ref.html9
-rw-r--r--layout/reftests/css-scrollbars/viewport-scrollbar-color-change.html17
5 files changed, 67 insertions, 0 deletions
diff --git a/layout/reftests/css-scrollbars/reftest.list b/layout/reftests/css-scrollbars/reftest.list
new file mode 100644
index 0000000000..e19bd2abf7
--- /dev/null
+++ b/layout/reftests/css-scrollbars/reftest.list
@@ -0,0 +1,2 @@
+== viewport-scrollbar-color-change.html viewport-scrollbar-color-change-ref.html
+== scrollbar-thin-overflow-change.html scrollbar-thin-overflow-change-ref.html
diff --git a/layout/reftests/css-scrollbars/scrollbar-thin-overflow-change-ref.html b/layout/reftests/css-scrollbars/scrollbar-thin-overflow-change-ref.html
new file mode 100644
index 0000000000..592690f7ca
--- /dev/null
+++ b/layout/reftests/css-scrollbars/scrollbar-thin-overflow-change-ref.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<style>
+#outer {
+ scrollbar-width: thin;
+ overflow: auto;
+ border: 5px solid black;
+ background: black;
+ width: 200px;
+ height: 200px;
+}
+#inner {
+ height: 300px;
+}
+</style>
+<div id="outer">
+ <div id="inner"></div>
+</div>
diff --git a/layout/reftests/css-scrollbars/scrollbar-thin-overflow-change.html b/layout/reftests/css-scrollbars/scrollbar-thin-overflow-change.html
new file mode 100644
index 0000000000..a46d95d398
--- /dev/null
+++ b/layout/reftests/css-scrollbars/scrollbar-thin-overflow-change.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<style>
+#outer {
+ scrollbar-width: thin;
+ overflow: auto;
+ border: 5px solid black;
+ background: black;
+ width: 200px;
+ height: 400px;
+}
+#inner {
+ height: 300px;
+}
+</style>
+<div id="outer">
+ <div id="inner"></div>
+</div>
+<script>
+// Force a reflow
+document.body.offsetHeight;
+document.getElementById('outer').style.height = '200px';
+</script>
diff --git a/layout/reftests/css-scrollbars/viewport-scrollbar-color-change-ref.html b/layout/reftests/css-scrollbars/viewport-scrollbar-color-change-ref.html
new file mode 100644
index 0000000000..e9119fe7c6
--- /dev/null
+++ b/layout/reftests/css-scrollbars/viewport-scrollbar-color-change-ref.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+<style>
+ html {
+ overflow: scroll;
+ scrollbar-color: green green;
+ }
+</style>
+<div style="width: 200vw; height: 200vh"></div>
diff --git a/layout/reftests/css-scrollbars/viewport-scrollbar-color-change.html b/layout/reftests/css-scrollbars/viewport-scrollbar-color-change.html
new file mode 100644
index 0000000000..f43e5afe50
--- /dev/null
+++ b/layout/reftests/css-scrollbars/viewport-scrollbar-color-change.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+<style>
+ html {
+ overflow: scroll;
+ scrollbar-color: green green;
+ }
+ html.reftest-wait {
+ scrollbar-color: red red;
+ }
+</style>
+<div style="width: 200vw; height: 200vh"></div>
+<script>
+ window.addEventListener("MozAfterPaint", function() {
+ document.documentElement.classList.remove("reftest-wait");
+ });
+</script>