<!DOCTYPE html>
<html>
<head>
  <title>CSS Test: Basic cases of width/height on block axis with max-content and min-content</title>
  <meta charset="utf-8">
  <link rel="author" title="Boris Chiou" href="mailto:boris.chiou@gmail.com">
  <link rel="help" href="https://drafts.csswg.org/css-sizing/#sizing-values">
  <link rel="match" href="block-size-with-min-or-max-content-1-ref.html">
  <meta name="flags" content="ahem">
  <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
  <link rel="stylesheet" type="text/css" href="support/min-content-max-content.css">
  <style>
    html,body {
      margin: 0;
    }
    .container {
      width: max-content;
      height: 50px;
      border: 1px solid black;

      font-family: Ahem;
      font-size: 15px;
      line-height: 21px;
    }
    .container > * {
      display: inline-block;
      border: 1px solid blue;
    }
    .container-vertical {
      width: 50px;
      border: 1px solid black;

      font-family: Ahem;
      font-size: 15px;
      line-height: 21px;
    }
    .container-vertical > * {
      writing-mode: vertical-lr;
      border: 1px solid blue;
    }
  </style>
</head>
<body>
  <div class="container">
    <div class="height-min-content">min<br>in the box</div>
    <div class="height-max-content">max<br>in the box</div>
  </div>

  <div class="container-vertical">
    <div class="width-min-content">min<br>in the box</div>
    <div class="width-max-content">max<br>in the box</div>
  </div>
</body>
</html>
