Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
1 <!DOCTYPE HTML>
2 <html class="reftest-wait">
3 <head>
4 <style>
5 body {
6 margin: 0;
7 display: -moz-box;
8 -moz-box-orient: horizontal;
9 width: 400px;
10 }
11 canvas {
12 -moz-box-flex: 1;
13 opacity: 0.999;
14 border: 1px solid black;
15 }
16 .censor {
17 position: absolute;
18 width: 1px;
19 height: 1px;
20 background: cyan;
21 }
22 </style>
23 </head>
24 <body>
25 <canvas id="c" width="100" height="100"></canvas>
26 <script>
27 var ctx = document.getElementById("c").getContext('2d');
28 ctx.fillStyle = "lime";
29 ctx.fillRect(0, 0, 100, 100);
30 function doTest() {
31 document.body.style.width = "502px";
32 document.documentElement.removeAttribute("class");
33 }
34 window.addEventListener("MozReftestInvalidate", doTest, false);
35 </script>
36 <div class="censor" style="left:0; top:0;"></div>
37 <div class="censor" style="left:501px; top:0;"></div>
38 <div class="censor" style="left:0; top:101px;"></div>
39 <div class="censor" style="left:501px; top:101px;"></div>
40 </body>
41 </html>