tor-browser

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

contain-size-fieldset-001.html (790B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Containment Test: Size containment on fieldset</title>
      4 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
      5 <link rel="help" href="https://drafts.csswg.org/css-contain-1/#containment-size">
      6 <link rel="match" href="reference/contain-size-fieldset-001-ref.html">
      7 <meta name=assert content="Size containment does apply to fieldsets, thus their size is the same than if they don't have contents.">
      8 <style>
      9 fieldset {
     10  contain: size;
     11  display: inline-block;
     12  color: transparent;
     13  border: none;
     14  padding: 0;
     15 }
     16 </style>
     17 
     18 <p>This test passes if it has the same output as the reference. You see the word "before", a small space, and then the word "after".</p>
     19 before<fieldset><legend>legend</legend></fieldset>after