layout/reftests/bugs/579323-1.html

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

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

mercurial