tor-browser

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

intrinsic-size-fallback-video.html (1376B)


      1 <!DOCTYPE html>
      2 <title>CSS Sizing Test: intrinsic contribution of videos with fallback size</title>
      3 <link rel="author" title="Oriol Brufau" href="obrufau@igalia.com">
      4 <link rel="help" href="https://drafts.csswg.org/css-sizing-3/#intrinsic-sizes">
      5 <link rel="help" href="https://drafts.csswg.org/css-sizing-3/#intrinsic-contribution">
      6 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/12053">
      7 <meta name="assert" content="
      8    These <video>s have no natural size nor natural aspect ratio,
      9    but fall back to default size of 300x150 (and no aspect ratio).
     10    Their intrinsic contributions should take these fallbacks into account.">
     11 <style>
     12 .wrapper {
     13  float: left;
     14  clear: both;
     15  border: solid;
     16 }
     17 video {
     18  background: cyan;
     19 }
     20 </style>
     21 <div id="log"></div>
     22 <div class="wrapper" data-expected-client-width="300">
     23  <video></video>
     24 </div>
     25 <div class="wrapper" data-expected-client-width="300">
     26  <video style="height: 100px"></video>
     27 </div>
     28 <div class="wrapper" data-expected-client-width="300">
     29  <video style="max-height: 50px"></video>
     30 </div>
     31 <div class="wrapper" data-expected-client-width="300">
     32  <video style="min-height: 200px"></video>
     33 </div>
     34 
     35 <script src="/resources/testharness.js"></script>
     36 <script src="/resources/testharnessreport.js"></script>
     37 <script src="/resources/check-layout-th.js"></script>
     38 <script>
     39 checkLayout(".wrapper");
     40 </script>