layout/reftests/forms/fieldset/dynamic-legend-scroll-1.html

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 <!DOCTYPE HTML>
     2 <html class="reftest-wait">
     3 <head>
     4 <style>
     5 fieldset { 
     6   background:pink;
     7   overflow:hidden;
     8   height:100px;
     9 }
    10 legend::after { content:"legend"; }
    11 p {
    12   background:lime;
    13   height:20px;
    14 }
    15 </style>
    16 </head>
    17 <body>
    18 <fieldset id="f1"><p></p></fieldset>
    19 <br>
    20 <fieldset id="f2"><p></p></fieldset>
    21 <br>
    22 <fieldset id="f3"></fieldset>
    23 <script>
    24 function doTest() {
    25   f1.appendChild(document.createElement('legend'));
    26   f2.insertBefore(document.createElement('legend'), f2.firstChild);
    27   f3.appendChild(document.createElement('legend'));
    28   document.documentElement.removeAttribute("class");
    29 }
    30 window.addEventListener("MozReftestInvalidate", doTest);
    31 </script>
    32 </body>
    33 </html>

mercurial