1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/floats/775350-1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 1.4 +<!DOCTYPE html> 1.5 +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait"> 1.6 +<head> 1.7 + <script> 1.8 + 1.9 +function handleLoad() { 1.10 + setTimeout(f1, 0); 1.11 +} 1.12 + 1.13 +function f1() { 1.14 + document.getElementById("inner").style.top = "100px"; 1.15 + setTimeout(f2, 0); 1.16 +} 1.17 + 1.18 +function f2() { 1.19 + document.getElementById("top").style.display = "block"; 1.20 + document.documentElement.removeAttribute("class"); 1.21 +} 1.22 + 1.23 + </script> 1.24 +</head> 1.25 +<body onload="handleLoad()"> 1.26 + <div id="top" style="display: none;"></div> 1.27 + <div> 1.28 + <div style="float: left; position: relative;"> 1.29 + <div id="inner" style="display: block; top: 110px; width: 100px; height: 100px; background: pink; position:absolute;"></div> 1.30 + </div> 1.31 + </div> 1.32 +</body> 1.33 +</html>