summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-scrollbars/viewport-scrollbar-color-change.html
blob: f43e5afe50b78263c0298ef1c228b62e81936200 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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>