diff options
Diffstat (limited to 'layout/reftests/css-scrollbars')
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> |