tor-browser

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

object-fit-none-png-002i.html (2815B)


      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: none' on img element, with a PNG 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-none-png-002-ref.html">
     15    <style type="text/css">
     16      img {
     17        border: 1px dashed gray;
     18        padding: 1px;
     19        object-fit: none;
     20        image-rendering: pixelated; /* for UAs that don't support crisp-edges */
     21        image-rendering: crisp-edges;
     22        float: left;
     23      }
     24 
     25      .bigWide {
     26        width: 48px;
     27        height: 32px;
     28      }
     29      .bigTall {
     30        width: 32px;
     31        height: 48px;
     32      }
     33      .small {
     34        width: 8px;
     35        height: 8px;
     36      }
     37 
     38      br { clear: both; }
     39 
     40      .tr { object-position: top right }
     41      .bl { object-position: bottom left }
     42      .tl { object-position: top 25% left 25% }
     43      .br { object-position: bottom 1px right 2px }
     44 
     45      .tc { object-position: top 3px left 50% }
     46      .cr { object-position: top 50% right 25% }
     47    </style>
     48  </head>
     49  <body>
     50    <!-- big/wide: -->
     51    <img src="support/colors-8x16.png" class="bigWide tr">
     52    <img src="support/colors-8x16.png" class="bigWide bl">
     53    <img src="support/colors-8x16.png" class="bigWide tl">
     54    <img src="support/colors-8x16.png" class="bigWide br">
     55    <img src="support/colors-8x16.png" class="bigWide tc">
     56    <img src="support/colors-8x16.png" class="bigWide cr">
     57    <img src="support/colors-8x16.png" class="bigWide">
     58    <br>
     59    <!-- big/tall: -->
     60    <img src="support/colors-8x16.png" class="bigTall tr">
     61    <img src="support/colors-8x16.png" class="bigTall bl">
     62    <img src="support/colors-8x16.png" class="bigTall tl">
     63    <img src="support/colors-8x16.png" class="bigTall br">
     64    <img src="support/colors-8x16.png" class="bigTall tc">
     65    <img src="support/colors-8x16.png" class="bigTall cr">
     66    <img src="support/colors-8x16.png" class="bigTall">
     67    <br>
     68    <!-- small: -->
     69    <img src="support/colors-8x16.png" class="small tr">
     70    <img src="support/colors-8x16.png" class="small bl">
     71    <img src="support/colors-8x16.png" class="small tl">
     72    <img src="support/colors-8x16.png" class="small br">
     73    <img src="support/colors-8x16.png" class="small tc">
     74    <img src="support/colors-8x16.png" class="small cr">
     75    <img src="support/colors-8x16.png" class="small">
     76    <br>
     77  </body>
     78 </html>