tor-browser

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

object-view-box-fit-contain-video-ref.html (1489B)


      1 <!-- This is an autogen file. Run support/generate_object_view_box_tests.py to update -->
      2 <!DOCTYPE html>
      3 <title>CSS object-view-box with object-fit:contain (ref)</title>
      4 <link rel="author" href="mailto:khushalsagar@chromium.org">
      5 <script src="support/testHelper.js"></script>
      6 <link rel="help" href="https://drafts.csswg.org/css-images-4/#the-object-view-box">
      7 
      8 <body>
      9 <style>
     10 div {
     11  margin: 5px;
     12 }
     13 
     14 video {
     15  object-fit: fill;
     16 }
     17 
     18 .container_view_box_subset {
     19  width: 50px;
     20  height: 100px;
     21  overflow: hidden;
     22  display: inline-block;
     23  background-color: grey;
     24 }
     25 .view_box_subset {
     26  position: relative;
     27  top: -25px;
     28 }
     29 
     30 .container_view_box_subset_with_position {
     31  width: 50px;
     32  height: 100px;
     33  overflow: hidden;
     34  display: inline-block;
     35  background-color: grey;
     36 }
     37 .view_box_subset_with_position {
     38  position: relative;
     39  top: -50px;
     40 }
     41 
     42 .container_view_box_subset_with_scaling {
     43  width: 100px;
     44  height: 200px;
     45  overflow: hidden;
     46  display: inline-block;
     47  background-color: grey;
     48 }
     49 .view_box_subset_with_scaling {
     50  position: relative;
     51  top: 25px;
     52  left: 25px;
     53  width: 100px;
     54  height: 200px;
     55 }
     56 </style>
     57 <div class="container_view_box_subset">
     58  <video class="view_box_subset"></video>
     59 </div>
     60 <div class="container_view_box_subset_with_position">
     61  <video class="view_box_subset_with_position"></video>
     62 </div>
     63 <div class="container_view_box_subset_with_scaling">
     64  <video class="view_box_subset_with_scaling"></video>
     65 </div>
     66 </body>
     67 <script>
     68  populateElements("");
     69 </script>