summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/1133905-5-vh-rtl.html
blob: 216e26123689d6958a24e80a00bb45083a4e0bbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<html class="reftest-wait"><head>
<meta name="viewport" content="initial-scale=1.5">
<style> html { direction: rtl; } </style>
</head>
<body>
<div style="height: 13333px; width: 6000px;"></div>
<script>
  window.addEventListener("MozReftestInvalidate",
      function() {
        // The zooming due to the initial-scale will not preserve the default
        // scroll position (top right corner) for an RTL scroll frame, so
        // scroll to it explicitly.
        window.scrollTo(scrollMaxX, 0);
        document.documentElement.className = "";
      });
</script>
</body>
</html>