tor-browser

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

object-fit-cover-svg-005p.html (3207B)


      1 <!DOCTYPE html>
      2 <!--
      3     Any copyright is dedicated to the Public Domain.
      4     http://creativecommons.org/publicdomain/zero/1.0/
      5 -->
      6 <html>
      7  <head>
      8    <meta charset="utf-8">
      9    <title>CSS Test: 'object-fit: cover' on video element, with a SVG image and with various 'object-position' values</title>
     10    <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
     11    <link rel="help" href="http://www.w3.org/TR/css3-images/#sizing">
     12    <link rel="help" href="http://www.w3.org/TR/css3-images/#the-object-fit">
     13    <link rel="help" href="http://www.w3.org/TR/css3-images/#the-object-position">
     14    <link rel="match" href="object-fit-cover-svg-005-ref.html">
     15    <style type="text/css">
     16      video {
     17        border: 1px dashed gray;
     18        padding: 1px;
     19        object-fit: cover;
     20        float: left;
     21      }
     22 
     23      .bigWide {
     24        width: 48px;
     25        height: 32px;
     26      }
     27      .bigTall {
     28        width: 32px;
     29        height: 48px;
     30      }
     31      .small {
     32        width: 8px;
     33        height: 8px;
     34      }
     35 
     36      br { clear: both; }
     37 
     38      .tr { object-position: top right }
     39      .bl { object-position: bottom left }
     40      .tl { object-position: top 25% left 25% }
     41      .br { object-position: bottom 1px right 2px }
     42 
     43      .tc { object-position: top 3px left 50% }
     44      .cr { object-position: top 50% right 25% }
     45    </style>
     46  </head>
     47  <body>
     48    <!-- big/wide: -->
     49    <video poster="support/colors-16x8-parDefault.svg" class="bigWide tr"></video>
     50    <video poster="support/colors-16x8-parDefault.svg" class="bigWide bl"></video>
     51    <video poster="support/colors-16x8-parDefault.svg" class="bigWide tl"></video>
     52    <video poster="support/colors-16x8-parDefault.svg" class="bigWide br"></video>
     53    <video poster="support/colors-16x8-parDefault.svg" class="bigWide tc"></video>
     54    <video poster="support/colors-16x8-parDefault.svg" class="bigWide cr"></video>
     55    <video poster="support/colors-16x8-parDefault.svg" class="bigWide"></video>
     56    <br>
     57    <!-- big/tall: -->
     58    <video poster="support/colors-16x8-parDefault.svg" class="bigTall tr"></video>
     59    <video poster="support/colors-16x8-parDefault.svg" class="bigTall bl"></video>
     60    <video poster="support/colors-16x8-parDefault.svg" class="bigTall tl"></video>
     61    <video poster="support/colors-16x8-parDefault.svg" class="bigTall br"></video>
     62    <video poster="support/colors-16x8-parDefault.svg" class="bigTall tc"></video>
     63    <video poster="support/colors-16x8-parDefault.svg" class="bigTall cr"></video>
     64    <video poster="support/colors-16x8-parDefault.svg" class="bigTall"></video>
     65    <br>
     66    <!-- small: -->
     67    <video poster="support/colors-16x8-parDefault.svg" class="small tr"></video>
     68    <video poster="support/colors-16x8-parDefault.svg" class="small bl"></video>
     69    <video poster="support/colors-16x8-parDefault.svg" class="small tl"></video>
     70    <video poster="support/colors-16x8-parDefault.svg" class="small br"></video>
     71    <video poster="support/colors-16x8-parDefault.svg" class="small tc"></video>
     72    <video poster="support/colors-16x8-parDefault.svg" class="small cr"></video>
     73    <video poster="support/colors-16x8-parDefault.svg" class="small"></video>
     74    <br>
     75  </body>
     76 </html>