layout/reftests/scrolling/uncovering-2.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/scrolling/uncovering-2.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,32 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html class="reftest-wait">
     1.6 +<head>
     1.7 +<style>
     1.8 +body {
     1.9 +  width: 1500px;
    1.10 +  overflow: hidden;
    1.11 +}
    1.12 +div#bottom {
    1.13 +  position: fixed;
    1.14 +  left: 0;
    1.15 +  top: 0;
    1.16 +  height: 200px;
    1.17 +  width: 200px;
    1.18 +  background: green;
    1.19 +}
    1.20 +</style>
    1.21 +</head>
    1.22 +<body>
    1.23 +<div style="margin-left:200px; left:200px; width:100px; height:100px; background:pink;"></div>
    1.24 +<div style="left:0; width:500px; height:20px; background:blue;"></div>
    1.25 +<div id="bottom"></div>
    1.26 +<script>
    1.27 +document.documentElement.scrollLeft = 200;
    1.28 +function doTest() {
    1.29 +  document.documentElement.removeAttribute("class");
    1.30 +  document.documentElement.scrollLeft = 0;
    1.31 +}
    1.32 +window.addEventListener("MozReftestInvalidate", doTest, false);
    1.33 +</script>
    1.34 +</body>
    1.35 +</html>

mercurial