2010-08-31 00:49:13 +00:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html class="reftest-wait">
|
|
|
|
<head>
|
|
|
|
<style>
|
|
|
|
body {
|
2011-07-18 00:46:26 +00:00
|
|
|
margin: 0;
|
2010-08-31 00:49:13 +00:00
|
|
|
display: -moz-box;
|
|
|
|
-moz-box-orient: horizontal;
|
|
|
|
width: 400px;
|
|
|
|
}
|
|
|
|
canvas {
|
|
|
|
-moz-box-flex: 1;
|
2011-07-10 23:50:26 +00:00
|
|
|
opacity: 0.999;
|
2010-08-31 00:49:13 +00:00
|
|
|
border: 1px solid black;
|
|
|
|
}
|
2011-07-18 00:46:26 +00:00
|
|
|
.censor {
|
|
|
|
position: absolute;
|
|
|
|
width: 1px;
|
|
|
|
height: 1px;
|
|
|
|
background: cyan;
|
|
|
|
}
|
2010-08-31 00:49:13 +00:00
|
|
|
</style>
|
2011-07-10 23:50:26 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<canvas id="c" width="100" height="100"></canvas>
|
2010-08-31 00:49:13 +00:00
|
|
|
<script>
|
2011-07-10 23:50:26 +00:00
|
|
|
var ctx = document.getElementById("c").getContext('2d');
|
|
|
|
ctx.fillStyle = "lime";
|
|
|
|
ctx.fillRect(0, 0, 100, 100);
|
2010-08-31 00:49:13 +00:00
|
|
|
function doTest() {
|
2011-07-10 23:50:26 +00:00
|
|
|
document.body.style.width = "502px";
|
2010-08-31 00:49:13 +00:00
|
|
|
document.documentElement.removeAttribute("class");
|
|
|
|
}
|
|
|
|
window.addEventListener("MozReftestInvalidate", doTest, false);
|
|
|
|
</script>
|
2011-07-18 00:46:26 +00:00
|
|
|
<div class="censor" style="left:0; top:0;"></div>
|
|
|
|
<div class="censor" style="left:501px; top:0;"></div>
|
|
|
|
<div class="censor" style="left:0; top:101px;"></div>
|
|
|
|
<div class="censor" style="left:501px; top:101px;"></div>
|
2010-08-31 00:49:13 +00:00
|
|
|
</body>
|
|
|
|
</html>
|