<!DOCTYPE html>

<html>
  <head>
    <title>object-fit, landscape images smaller than content box</title>
    <style type="text/css">
      .group > div {
        display: inline-block;
        overflow: hidden;
        width: 144px;
        height: 144px;
        margin: 10px;
        border: 1px solid black;
        background-color: gray;
      }

      .group > * > * { display: block; }
      .group.landscape > *:nth-child(1) > * { width:100%; height:100%; }
      .group.landscape > *:nth-child(2) > * { width:100%; margin-top:25%; }
      .group.landscape > *:nth-child(3) > * { height:100%; margin-left:-50%; }
      .group.landscape > *:nth-child(4) > * { margin-left: 36px; margin-top:54px; }
      .group.landscape > *:nth-child(5) > * { margin-left: 36px; margin-top:54px; }
    </style>
  </head>
  <body>

    <!-- Small images, should be scaled up when allowed. -->
    <div class="group landscape">
      <div><img src="../resources/circles-landscape-small.png"></div>
      <div><img src="../resources/circles-landscape-small.png"></div>
      <div><img src="../resources/circles-landscape-small.png"></div>
      <div><img src="../resources/circles-landscape-small.png"></div>
      <div><img src="../resources/circles-landscape-small.png"></div>
    </div>
  </body>
</html>
