layout/reftests/abs-pos/scrollframe-2-ref.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/abs-pos/scrollframe-2-ref.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,16 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +  <body onload="loaded()">
     1.7 +    <div style="position: relative; top: 100px; overflow: scroll; width: 100px; height: 100px;">
     1.8 +      <div style="height: 200px"></div></div>
     1.9 +    <div style="position: absolute; top: 100px;" id="abs">abs</div>
    1.10 +    <script>
    1.11 +      function loaded() {
    1.12 +        var insPoint = document.querySelector("div");
    1.13 +        insPoint.scrollTop = 50;
    1.14 +        var abs = document.getElementById("abs");
    1.15 +        abs.style.top = insPoint.offsetTop + "px";
    1.16 +      }
    1.17 +    </script>
    1.18 +  </body>
    1.19 +</html>

mercurial