tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

dynamic-legend-scroll-1.html (680B)


      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>