tor-browser

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

replaced-element-027.html (906B)


      1 <!DOCTYPE html>
      2 <html>
      3  <title>CSS aspect-ratio: video with aspect-ratio and contain:size</title>
      4  <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
      5  <link rel="author" title="Mozilla" href="https://www.mozilla.org/">
      6  <link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio">
      7  <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/5550">
      8  <link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
      9  <meta name="assert" content="This test verifies aspect-ratio's <ratio> is used to determine the video's size because contain:size enforces no intrinsic aspect ratio.">
     10 
     11  <style>
     12  video {
     13    width: 100px;
     14    aspect-ratio: 1/1;
     15    object-fit: fill;
     16    contain: size;
     17  }
     18  </style>
     19 
     20  <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     21  <video poster="support/20x50-green.png"></video>
     22 </html>