Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
            
- /css/css-contain/contain-size-multicol-004.html - WPT Dashboard Interop Dashboard
 
 
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
  <title>CSS Test: 'contain: size' should force elements to be monolithic, i.e. to not fragment inside a multicol element.</title>
  <link rel="author" title="Morgan Rae Reschenberg" href="mailto:mreschenberg@berkeley.edu">
  <link rel="match" href="contain-size-multicol-004-ref.html">
  <style>
    .contain {
      contain:size;
    }
    .cols {
      column-count: 3;
      column-rule: 1px dotted blue;
      column-fill: auto;
      border: 2px solid blue;
      height: 50px;
      width: 300px;
    }
    .innerObject {
      height: 200px;
      width: 100px;
      background: orange;
    }
  </style>
</head>
  <body>
    <div class="cols">
      <div class="contain innerObject">
      </div>
    </div>
  </body>
</html>