<!DOCTYPE HTML>
<html>
<head>
  <meta charset="utf-8">
  <title>CSS Test: 'contain: size' on multicol elements should cause them to be sized as if they had no contents.</title>
  <link rel="author" title="Morgan Rae Reschenberg" href="mailto:mreschenberg@berkeley.edu">
  <link rel="help" href="https://drafts.csswg.org/css-contain/#containment-size">
  <link rel="match" href="contain-size-multicol-002-ref.html">
  <style>
  .contain {
    contain: size;
    border: 1em solid green;
    background: red;
    column-count: 3;
  }
  .innerContents {
    color: transparent;
    height: 50px;
    width: 50px;
  }
  .minHeight {
    min-height: 20px;
    background: lightblue;
  }
  .height {
    height: 20px;
    background: lightblue;
  }
  .maxWidth {
    max-width: 20px;
  }
  .width {
    width: 20px;
  }
  .floatLBasic {
    float: left;
  }
  .floatLWidth {
    float: left;
    width: 20px;
  }
  </style>
</head>
<body>
  <!--CSS Test: A size-contained multicol element with no specified size should render at 0 height regardless of content.-->
  <div class="contain"><div class="innerContents">inner</div></div>
  <br>

  <!--CSS Test: A size-contained multicol element with specified min-height should render at given min-height regardless of content.-->
  <div class="contain minHeight"><div class="innerContents">inner</div></div>
  <br>

  <!--CSS Test: A size-contained multicol element with specified height should render at given height regardless of content.-->
  <div class="contain height"><div class="innerContents">inner</div></div>
  <br>

  <!--CSS Test: A size-contained multicol element with specified max-width should render at given max-width and zero height regardless of content.-->
  <div class="contain maxWidth"><div class="innerContents">inner</div></div>
  <br>

  <!--CSS Test: A size-contained multicol element with specified width should render at given width and zero height regardless of content.-->
  <div class="contain width"><div class="innerContents">inner</div></div>
  <br>

  <!--CSS Test: A size-contained floated multicol element with no specified size should render at 0px by 0px regardless of content.-->
  <div class="contain floatLBasic"><div class="innerContents">inner</div></div>
  <br>

  <!--CSS Test: A size-contained floated multicol element with specified width and no specified height should render at given width and 0 height regardless of content.-->
  <div class="contain floatLWidth"><div class="innerContents">inner</div></div>
</body>
</html>
