1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/position-dynamic-changes/mixed-abspos-root/mixed-dimentionA.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,38 @@ 1.4 +<!DOCTYPE html> 1.5 +<html id="parent" class="reftest-wait"> 1.6 + <head> 1.7 + <link rel="stylesheet" type="text/css" href="style.css"> 1.8 + <script src="../handleprop.js" type="text/javascript"></script> 1.9 + <style> 1.10 + #child { 1.11 + left: 100px; 1.12 + top: 100px; 1.13 + right: 20px; 1.14 + bottom: 20px; 1.15 + } 1.16 + </style> 1.17 + <script src="../horizontal/animate.js" type="text/javascript"></script> 1.18 + <script type="text/javascript"> 1.19 + var counter = 0; 1.20 + function play() { 1.21 + if (counter < 100) { 1.22 + var child = document.getElementById("child"); 1.23 + child.style.left = (parseInt(getComputedStyle(child, null).left.replace("px", "")) + 20) + "px"; 1.24 + child.style.top = (parseInt(getComputedStyle(child, null).top.replace("px", "")) + 10) + "px"; 1.25 + rfa(play); 1.26 + counter += 10; 1.27 + } else { 1.28 + document.documentElement.removeAttribute("class"); 1.29 + } 1.30 + } 1.31 + 1.32 + window.onload = function() { rfa(play) }; 1.33 + </script> 1.34 + </head> 1.35 + <body> 1.36 + <div id="child"> 1.37 + <div class="floatLeft"></div> 1.38 + <div class="floatLeft"></div> 1.39 + </div> 1.40 + </body> 1.41 +</html>