1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/first-line/stress-1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,41 @@ 1.4 +<!DOCTYPE html> 1.5 +<html class="reftest-wait"> 1.6 +<head> 1.7 + 1.8 +<style> 1.9 + .fl:first-line { } 1.10 + .inh { position: inherit; } 1.11 + .abs { position: absolute; } 1.12 + body { visibility: hidden; } 1.13 +</style> 1.14 + 1.15 +<script> 1.16 + 1.17 +function boom() 1.18 +{ 1.19 + x = document.getElementById("x"); 1.20 + y = document.getElementById("y"); 1.21 + 1.22 + x.setAttribute('class', "fl abs"); 1.23 + y.setAttribute('class', "inh"); 1.24 + setTimeout(boom2, 5); 1.25 +} 1.26 + 1.27 +function boom2() 1.28 +{ 1.29 + y.setAttribute('class', "abs"); 1.30 + document.body.offsetWidth; 1.31 + document.documentElement.className = ""; 1.32 +} 1.33 + 1.34 +</script> 1.35 + 1.36 +</head> 1.37 + 1.38 +<body onload="setTimeout(boom, 5);"> 1.39 +<div id="x"> 1.40 + <p id="y">foo</p> 1.41 +</div> 1.42 +</body> 1.43 + 1.44 +</html>