tor-browser

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

intrinsic-percent-replaced-022.html (878B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
      4 <link rel="author" title="Mozilla" href="https://www.mozilla.org/">
      5 <link rel="help" href="https://drafts.csswg.org/css-sizing-3/#intrinsic-sizes">
      6 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1919220">
      7 <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
      8 <meta name="assert" content="This test verifies that fieldset's width is the same as the img's width, transferred from the img's height and aspect-ratio.">
      9 
     10 <style>
     11 fieldset {
     12  margin: 0;
     13  padding: 0;
     14  border: 0;
     15  height: 100px;
     16  width: fit-content;
     17  background: red;
     18 }
     19 img {
     20  height: 100%;
     21 }
     22 </style>
     23 
     24 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     25 <fieldset>
     26  <img src="aspect-ratio/support/200x200-green.png">
     27 </fieldset>