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

Fri, 16 Jan 2015 04:50:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 04:50:19 +0100
branch
TOR_BUG_9701
changeset 13
44a2da4a2ab2
permissions
-rw-r--r--

Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32

     1 <!DOCTYPE html>
     2 <html class="reftest-wait">
     3 <head>
     4 <style>
     5   #t {
     6     display: none;
     7   }
     8 </style>
     9 <script lang="JavaScript">
    10   function toggleLayer(id) {
    11       var s = document.getElementById(id).style;
    12       s.display = s.display ? "" : "block";
    13   }
    15   function doTest() {
    16     toggleLayer('t');
    17     document.body.offsetWidth;
    18     toggleLayer('t');
    19     document.body.offsetWidth;
    20     toggleLayer('t');
    21     document.documentElement.className = "";
    22   }
    23 </script>
    24 </head>
    25 <body onload="doTest()">
    26 <table style="width: 100%;" border="5">
    27   <tr>
    28           <td id="t">First row</td>
    29   </tr>
    30   <tr>
    31           <td>Second row</td>
    32   </tr>
    33 </table>
    34 </body>
    35 </html>

mercurial