layout/base/crashtests/306940-1.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <html>
     2 <head>
     4 <script>
     6 function init()
     7 {
     8   var c1 = document.getElementById("c1"); 
     9   var f1 = document.getElementById("f1"); 
    10   var a1 = document.getElementById("a1"); 
    12   function first()
    13   {
    14     f1.style.display = "-moz-popup";
    15     c1.style.height = "2em";
    16     window.status = "A";
    17   }
    19   function second()
    20   {
    21     c1.style.position = "absolute";
    22     c1.style.overflow = "auto";
    23     a1.style.position = "absolute";
    24     window.status = "B";
    25   }
    27   first();
    28   document.documentElement.offsetHeight;
    29   second();
    30 }
    32 </script>
    33 </head>
    35 <body onload="init();">
    36   <div id="c1">
    37     <div id="f1">
    38       <table>
    39         <tr>
    40           <td>
    42             <span id="a1">Foo</span>
    43           </td>
    44         </tr>
    45       </table>
    46     </div>
    47   </div>
    48 </body>
    50 </html>

mercurial