layout/reftests/layers/component-alpha-exit-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 <title>Test transition from component-alpha layer to single-alpha layer</title>
     4 <script type="text/javascript">
     5 document.addEventListener("MozReftestInvalidate", function scrollOnePixelDown () {
     6   var scrollbox = document.getElementById("scrollbox");
     7   window.addEventListener("MozAfterPaint", function scrollDownAllTheWay() {
     8     window.removeEventListener("MozAfterPaint", arguments.callee, false);
     9     scrollbox.scrollTop = 1000;
    10     document.documentElement.className = "";
    11   }, false);
    12   scrollbox.scrollTop = 1; // activate scroll layer
    13 }, false);
    14 </script>
    15 <style>
    16 #scrollbox {
    17   margin: 20px;
    18   width: 300px;
    19   height: 400px;
    20   overflow-y: hidden;
    21   background: -moz-linear-gradient(#FFF, #FFF);
    22 }
    24 #inner {
    25   background-color: #000;
    26   margin-top: 10px;
    27   height: 5px;
    28   line-height: 5px;
    29   padding-bottom: 400px;
    30 }
    31 </style>
    33 <div id="scrollbox">
    34   <div id="inner">
    35     Text
    36   </div>
    37 </div>

mercurial