1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/layers/component-alpha-exit-1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,37 @@ 1.4 +<!DOCTYPE html> 1.5 +<html class="reftest-wait"> 1.6 +<title>Test transition from component-alpha layer to single-alpha layer</title> 1.7 +<script type="text/javascript"> 1.8 +document.addEventListener("MozReftestInvalidate", function scrollOnePixelDown () { 1.9 + var scrollbox = document.getElementById("scrollbox"); 1.10 + window.addEventListener("MozAfterPaint", function scrollDownAllTheWay() { 1.11 + window.removeEventListener("MozAfterPaint", arguments.callee, false); 1.12 + scrollbox.scrollTop = 1000; 1.13 + document.documentElement.className = ""; 1.14 + }, false); 1.15 + scrollbox.scrollTop = 1; // activate scroll layer 1.16 +}, false); 1.17 +</script> 1.18 +<style> 1.19 +#scrollbox { 1.20 + margin: 20px; 1.21 + width: 300px; 1.22 + height: 400px; 1.23 + overflow-y: hidden; 1.24 + background: -moz-linear-gradient(#FFF, #FFF); 1.25 +} 1.26 + 1.27 +#inner { 1.28 + background-color: #000; 1.29 + margin-top: 10px; 1.30 + height: 5px; 1.31 + line-height: 5px; 1.32 + padding-bottom: 400px; 1.33 +} 1.34 +</style> 1.35 + 1.36 +<div id="scrollbox"> 1.37 + <div id="inner"> 1.38 + Text 1.39 + </div> 1.40 +</div>