|
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 } |
|
23 |
|
24 #inner { |
|
25 background-color: #000; |
|
26 margin-top: 10px; |
|
27 height: 5px; |
|
28 line-height: 5px; |
|
29 padding-bottom: 400px; |
|
30 } |
|
31 </style> |
|
32 |
|
33 <div id="scrollbox"> |
|
34 <div id="inner"> |
|
35 Text |
|
36 </div> |
|
37 </div> |