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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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