tor-browser

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

replaced-element-037.html (593B)


      1 <!DOCTYPE html>
      2 <title>CSS aspect-ratio: svg in img with box-sizing:border-box</title>
      3 <link rel="author" title="Mozilla" href="https://www.mozilla.org/">
      4 <link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio">
      5 <link rel="match" href="replaced-element-037-ref.html">
      6 
      7 <style>
      8  img {
      9    height: auto;
     10    box-sizing: border-box;
     11    padding-top: 50px;
     12  }
     13 </style>
     14 <img width="200" height="100" src='data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 100"><rect fill="red" stroke="black" stroke-width="6" width="200" height="100"/></svg>'/>