layout/reftests/scrolling/uncovering-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/scrolling/uncovering-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,31 @@
     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 id="bottom"></div>
    1.24 +<div style="width:600px; height:100px; background:pink;"></div>
    1.25 +<script>
    1.26 +document.documentElement.scrollLeft = 200;
    1.27 +function doTest() {
    1.28 +  document.documentElement.removeAttribute("class");
    1.29 +  document.documentElement.scrollLeft = 0;
    1.30 +}
    1.31 +window.addEventListener("MozReftestInvalidate", doTest, false);
    1.32 +</script>
    1.33 +</body>
    1.34 +</html>

mercurial