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

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

michael@0 1 <!DOCTYPE html>
michael@0 2 <html>
michael@0 3 <head>
michael@0 4 <script language="javascript">
michael@0 5 function toggleRow(rowId)
michael@0 6 {
michael@0 7 var r = document.getElementById(rowId);
michael@0 8 if (r.style.display == "none")
michael@0 9 r.style.display = "inline";
michael@0 10 else
michael@0 11 r.style.display = "none";
michael@0 12 }
michael@0 13
michael@0 14 function doTest() {
michael@0 15 toggleRow('row4');
michael@0 16 document.body.offsetWidth;
michael@0 17 toggleRow('row4');
michael@0 18 document.body.offsetWidth;
michael@0 19 toggleRow('row4');
michael@0 20 }
michael@0 21 </script>
michael@0 22 </head>
michael@0 23 <body onload="doTest()">
michael@0 24 <table border="5">
michael@0 25 <tr>
michael@0 26 <td>Row 1</td>
michael@0 27 </tr>
michael@0 28 <tr>
michael@0 29 <td>Row 2</td>
michael@0 30 </tr>
michael@0 31 <tr>
michael@0 32 <td>Row 3</td>
michael@0 33 </tr>
michael@0 34 <tr>
michael@0 35 <td id="row4" style="display: none">Row 4</td>
michael@0 36 </tr>
michael@0 37 </table>
michael@0 38 </body>
michael@0 39 </html>

mercurial