layout/reftests/table-anonymous-boxes/277995-1.html

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

michael@0 1 <!DOCTYPE html>
michael@0 2 <html class="reftest-wait">
michael@0 3 <head>
michael@0 4 <script type="text/javascript" language="javascript">
michael@0 5 function doMore(data) {
michael@0 6 while(data.hasChildNodes())
michael@0 7 data.removeChild(data.firstChild);
michael@0 8 for (var i = 0; i < 10; i++) {
michael@0 9 append(data);
michael@0 10 }
michael@0 11 }
michael@0 12
michael@0 13 function append(data) {
michael@0 14 var row = document.createElement("div");
michael@0 15 row.setAttribute("class", "row");
michael@0 16
michael@0 17 var cell = document.createElement("span");
michael@0 18 cell.appendChild(document.createTextNode("More Data"));
michael@0 19 cell.setAttribute("class", "cell");
michael@0 20 row.appendChild(cell);
michael@0 21 data.appendChild(row);
michael@0 22 }
michael@0 23
michael@0 24 function doTest() {
michael@0 25 for (var i = 0; i < 10; ++i) {
michael@0 26 document.body.offsetWidth;
michael@0 27 doMore(document.getElementById('data'));
michael@0 28 }
michael@0 29 document.documentElement.className = '';
michael@0 30 }
michael@0 31 </script>
michael@0 32 <style>
michael@0 33 .table {
michael@0 34 display: table;
michael@0 35 }
michael@0 36 .row {
michael@0 37 display: table-row;
michael@0 38
michael@0 39 }
michael@0 40 .cell {
michael@0 41 display: table-cell;
michael@0 42 }
michael@0 43 </style>
michael@0 44 </head>
michael@0 45 <body onload="doTest()">
michael@0 46 <table>
michael@0 47 <tr>
michael@0 48 <td>
michael@0 49 <div id="data" class="table">
michael@0 50 </div>
michael@0 51 </td>
michael@0 52 </tr>
michael@0 53 </table>
michael@0 54 </body>
michael@0 55 </html>

mercurial