summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css/object-fit-shrink.html
blob: 21beb4c54b436af8baaa9cebfa682b140ae7c672 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>

<html>
  <head>
    <style type="text/css">
      img {
        display: inline-block;
        height: 72px;
        width: 72px;
        margin: 10px;
        border: 1px solid black;
        background-color: gray;
      }
    </style>
  </head>
  <body>

    <!-- Large images, should be scaled down when allowed. -->
    <img style="object-fit: fill;" src="resources/circles-landscape.png">
    <img style="object-fit: contain;" src="resources/circles-landscape.png">
    <img style="object-fit: cover;" src="resources/circles-landscape.png">
    <img style="object-fit: none;" src="resources/circles-landscape.png">
    <img style="object-fit: scale-down;" src="resources/circles-landscape.png">
    <br>
    <br>

    <img style="object-fit: fill;" src="resources/circles-portrait.png">
    <img style="object-fit: contain;" src="resources/circles-portrait.png">
    <img style="object-fit: cover;" src="resources/circles-portrait.png">
    <img style="object-fit: none;" src="resources/circles-portrait.png">
    <img style="object-fit: scale-down;" src="resources/circles-portrait.png">
    <br>

  </body>
</html>