1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/bugs/944291-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 +<head> 1.7 +<style> 1.8 +#d1 { 1.9 + width: 250px; 1.10 + height: 200px; 1.11 + margin: 200px; 1.12 + transform: translateY(10px); 1.13 +} 1.14 +#d1.hidden { 1.15 + transform: translateY(20px); 1.16 +} 1.17 +#d2 { 1.18 + background-color: yellow; 1.19 + position: relative; 1.20 + width: 100px; 1.21 + height: 100px; 1.22 + left: 0; 1.23 +} 1.24 +.hidden > #d2 { 1.25 + left: -100px; 1.26 +} 1.27 +</style> 1.28 +</head> 1.29 +<body> 1.30 +<div id="d1"> 1.31 + <div id="d2"></div> 1.32 +</div> 1.33 +<script> 1.34 +window.addEventListener("MozReftestInvalidate", function() { 1.35 + d1.classList.toggle("hidden"); 1.36 + document.documentElement.removeAttribute("class"); 1.37 +}); 1.38 +</script> 1.39 +</body> 1.40 +</html>