1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/css-transitions/transitions-inline-already-wrapped-2.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,28 @@ 1.4 +<html class="reftest-wait"> 1.5 +<title>Test for CSS transitions and re-wrapping of inlines</title> 1.6 +<style type="text/css"> 1.7 +#test { transition: 20ms color linear 0; } 1.8 +</style> 1.9 +<script type="text/javascript"> 1.10 + 1.11 +window.onload = run; 1.12 + 1.13 +function run() { 1.14 + var test = document.getElementById("test"); 1.15 + var unused = test.offsetWidth; 1.16 + unused = getComputedStyle(test, "").color; 1.17 + test.style.color = "green"; 1.18 + unused = test.offsetWidth; 1.19 + unused = getComputedStyle(test, "").color; 1.20 + setTimeout(step2, 100); // give transition time to run 1.21 +} 1.22 +function step2() { 1.23 + document.documentElement.removeAttribute("class"); 1.24 +} 1.25 + 1.26 +</script> 1.27 +<div style="width: 3em"> 1.28 +<span id="test" style="color: red"> 1.29 +This is some text with a transition. 1.30 +</span> 1.31 +</div>