<!DOCTYPE html>

<html>
  <head>
    <title>object-fit, images larger than content box</title>
    <style type="text/css">
      .group > div {
        display: inline-block;
        overflow: hidden;
        height: 72px;
        width: 72px;
        margin: 10px;
        border: 1px solid black;
        background-color: gray;
      }
      div > * > * { 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) > * { width:288px; margin-left:-108px; margin-top:-36px; }
      .group.landscape > *:nth-child(5) > * { width:100%; margin-top:25%; }
      .group.portrait > *:nth-child(1) > * { width:100%; height:100%; }
      .group.portrait > *:nth-child(2) > * { height:100%; margin-left:25%; }
      .group.portrait > *:nth-child(3) > * { width:100%; margin-top:-50%; }
      .group.portrait > *:nth-child(4) > * { height:288px; margin-top:-108px; margin-left:-36px; }
      .group.portrait > *:nth-child(5) > * { height:100%; margin-left:25%; }
    </style>
  </head>
  <body>

    <!-- Large images, should be scaled down when allowed. -->
    <div class="group landscape">
      <div><img src="../resources/circles-landscape.png"></div>
      <div><img src="../resources/circles-landscape.png"></div>
      <div><img src="../resources/circles-landscape.png"></div>
      <div><img src="../resources/circles-landscape.png"></div>
      <div><img src="../resources/circles-landscape.png"></div>
    </div>

    <br>

    <div class="group portrait">
      <div><img src="../resources/circles-portrait.png"></div>
      <div><img src="../resources/circles-portrait.png"></div>
      <div><img src="../resources/circles-portrait.png"></div>
      <div><img src="../resources/circles-portrait.png"></div>
      <div><img src="../resources/circles-portrait.png"></div>
    </div>

  </body>
</html>
