layout/reftests/border-radius/scroll-1.html

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 <!DOCTYPE HTML>
     2 <html class="reftest-wait">
     3 <head>
     4 <script>
     5 function scrollTo(v) {
     6   var d = document.getElementById("d");
     7   d.scrollTop = v;
     8   if (v < 100) {
     9     setTimeout(function() { scrollTo(v + 50); }, 400);
    10   } else {
    11     document.documentElement.removeAttribute("class");
    12   }
    13 }
    14 </script>
    15 </head>
    16 <body onload="scrollTo(0)">
    17 <div style="border-radius:100px; width:300px; height:300px; overflow:hidden;" id="d">
    18   <div style="height:1000px;">
    19     <div style="margin-top:100px; height:20px; background:blue;"></div>
    20   </div>
    21 </div>
    22 </body>
    23 </html>

mercurial