1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/native-theme/checkbox-dynamic-1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,39 @@ 1.4 +<!DOCTYPE html> 1.5 +<html class="reftest-wait"> 1.6 +<head> 1.7 + <style> 1.8 + #checkbox { 1.9 + position: absolute; 1.10 + left: 0px; 1.11 + top: 0px; 1.12 + background: -moz-linear-gradient(left, white, brown); 1.13 + } 1.14 + #toremove { 1.15 + position: absolute; 1.16 + left: 0px; 1.17 + top: 0px; 1.18 + width: 100px; 1.19 + height: 0px; 1.20 + background: black; 1.21 + } 1.22 + </style> 1.23 +</head> 1.24 +<body> 1.25 + <div id="checkbox"> 1.26 + <input type="checkbox"> 1.27 + </div> 1.28 + <div id="toremove"> 1.29 + </div> 1.30 +</body> 1.31 +<script type="text/javascript"> 1.32 + var checkBox = document.getElementById("checkbox"); 1.33 + var toRemove = document.getElementById("toremove"); 1.34 + toRemove.style.height = checkBox.offsetHeight / 2 + 0.2 + "px"; 1.35 + function boom() 1.36 + { 1.37 + toRemove.parentNode.removeChild(toRemove); 1.38 + document.documentElement.className = ""; 1.39 + } 1.40 + window.addEventListener("MozReftestInvalidate", boom, false); 1.41 +</script> 1.42 +</html>