1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/bugs/579323-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 +<style> 1.8 +body { 1.9 + margin: 0; 1.10 + display: -moz-box; 1.11 + -moz-box-orient: horizontal; 1.12 + width: 400px; 1.13 +} 1.14 +canvas { 1.15 + -moz-box-flex: 1; 1.16 + opacity: 0.999; 1.17 + border: 1px solid black; 1.18 +} 1.19 +.censor { 1.20 + position: absolute; 1.21 + width: 1px; 1.22 + height: 1px; 1.23 + background: cyan; 1.24 +} 1.25 +</style> 1.26 +</head> 1.27 +<body> 1.28 +<canvas id="c" width="100" height="100"></canvas> 1.29 +<script> 1.30 +var ctx = document.getElementById("c").getContext('2d'); 1.31 +ctx.fillStyle = "lime"; 1.32 +ctx.fillRect(0, 0, 100, 100); 1.33 +function doTest() { 1.34 + document.body.style.width = "502px"; 1.35 + document.documentElement.removeAttribute("class"); 1.36 +} 1.37 +window.addEventListener("MozReftestInvalidate", doTest, false); 1.38 +</script> 1.39 +<div class="censor" style="left:0; top:0;"></div> 1.40 +<div class="censor" style="left:501px; top:0;"></div> 1.41 +<div class="censor" style="left:0; top:101px;"></div> 1.42 +<div class="censor" style="left:501px; top:101px;"></div> 1.43 +</body> 1.44 +</html>