tor-browser

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

fieldset-legend-change.html (662B)


      1 <!doctype html>
      2 <title>CSS Container Queries Test: inline-size query changes rendered legend in fieldset</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-conditional-5/#size-container">
      4 <link rel="match" href="fieldset-legend-change-ref.html">
      5 <p>Pass if the rendered legend below is "PASS"</p>
      6 <style>
      7  fieldset {
      8    width: 200px;
      9    container-type: inline-size;
     10  }
     11  .wide { width: 400px; }
     12 
     13  @container (min-width: 300px) {
     14    #fail {
     15      display: none;
     16    }
     17  }
     18 </style>
     19 <fieldset id="fieldset">
     20  <legend id="fail">FAIL</legend>
     21  <legend>PASS</legend>
     22 </fieldset>
     23 <script>
     24  fieldset.offsetTop;
     25  fieldset.className = "wide";
     26 </script>