wpt / css / css-break / out-of-flow-in-multicolumn-004.html

Status: FAIL | Duration: 9ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-break/out-of-flow-in-multicolumn-004.html

<!DOCTYPE html>
<link rel="help" href="https://www.w3.org/TR/css-break-3/#breaking-controls">
<link rel="match" href="out-of-flow-in-multicolumn-004-ref.html">
<!-- break-inside: avoid and break-before: column do not apply to absolute positioned elements. -->
<style>
  #multicol {
    column-count: 2;
    column-fill: auto;
    column-gap: 0px;
    height: 40px;
    width: 100px;
  }
  .rel {
    position: relative;
  }
  .abs {
    position: absolute;
    width: 40px;
    height: 30px;
    background: green;
  }
  .content {
    width: 20px;
    height: 20px;
    background: blue;
  }
  .inside {
    break-inside: avoid;
  }
  .before {
    break-before: column;
  }
</style>
<div id="multicol">
  <div class="content"></div>
  <div class="rel">
    <div class="abs inside"></div>
  </div>
</div>
<div id="multicol">
  <div class="content"></div>
  <div class="rel">
    <div class="abs before"></div>
  </div>
</div>

/css/css-break/out-of-flow-in-multicolumn-004-ref.html

<!DOCTYPE html>
<!-- Simulate two multi-column containers with an out-of-flow positioned child that
     fragments, even in the presence of break-inside: avoid and break-before: column. -->
<style>
.initial {
  float: left;
  height: 20px;
  width: 20px;
  background: blue;
}
.first-fragment {
  width: 40px;
  height: 20px;
  background: green;
  margin-top: 10px;
}
.second-fragment {
  width: 40px;
  height: 10px;
  background: green;
  margin-left: 50px;
}
</style>
<div class="initial"></div>
<div class="second-fragment"></div>
<div class="first-fragment"></div>
<div class="initial"></div>
<div class="second-fragment"></div>
<div class="first-fragment"></div>