summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/1133905-6-vh-rtl.html
blob: 412f7ece4d4a1471cbc19300562bd7214dd8ab80 (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=2.0">
<style> html { direction: rtl; } </style>
</head>
<body>
<div style="height: 10000px; width: 4500px;"></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>