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.)

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

mercurial