tor-browser

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

object-fit-cover-svg-003e.html (2892B)


      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 embed 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-003-ref.html">
     15    <style type="text/css">
     16      embed {
     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    <embed src="support/colors-16x8-noSize.svg" class="bigWide tr">
     50    <embed src="support/colors-16x8-noSize.svg" class="bigWide bl">
     51    <embed src="support/colors-16x8-noSize.svg" class="bigWide tl">
     52    <embed src="support/colors-16x8-noSize.svg" class="bigWide br">
     53    <embed src="support/colors-16x8-noSize.svg" class="bigWide tc">
     54    <embed src="support/colors-16x8-noSize.svg" class="bigWide cr">
     55    <embed src="support/colors-16x8-noSize.svg" class="bigWide">
     56    <br>
     57    <!-- big/tall: -->
     58    <embed src="support/colors-16x8-noSize.svg" class="bigTall tr">
     59    <embed src="support/colors-16x8-noSize.svg" class="bigTall bl">
     60    <embed src="support/colors-16x8-noSize.svg" class="bigTall tl">
     61    <embed src="support/colors-16x8-noSize.svg" class="bigTall br">
     62    <embed src="support/colors-16x8-noSize.svg" class="bigTall tc">
     63    <embed src="support/colors-16x8-noSize.svg" class="bigTall cr">
     64    <embed src="support/colors-16x8-noSize.svg" class="bigTall">
     65    <br>
     66    <!-- small: -->
     67    <embed src="support/colors-16x8-noSize.svg" class="small tr">
     68    <embed src="support/colors-16x8-noSize.svg" class="small bl">
     69    <embed src="support/colors-16x8-noSize.svg" class="small tl">
     70    <embed src="support/colors-16x8-noSize.svg" class="small br">
     71    <embed src="support/colors-16x8-noSize.svg" class="small tc">
     72    <embed src="support/colors-16x8-noSize.svg" class="small cr">
     73    <embed src="support/colors-16x8-noSize.svg" class="small">
     74    <br>
     75  </body>
     76 </html>