testing/web-platform/tests/css/css-break/flexbox/multi-line-column-flex-fragmentation-021.html
author Florian Quèze <florian@queze.net>
Tue, 08 Jul 2025 20:48:53 +0000 (11 hours ago)
changeset 795809 b01190f141a12f4b506acb1f4476561c4b0f2407
parent 612148 7b38fd8b13e59a6ecdf7934a111dd19f890886fc
permissions -rw-r--r--
Bug 1960567 - remove the last C++ and scriptable APIs to accumulate data to legacy telemetry histograms, r=chutten. Differential Revision: https://phabricator.services.mozilla.com/D255582
<!DOCTYPE html>
<title>
  Multi-line column flex fragmentation with break-before: column.
</title>
<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
<style>
  .multicol {
    column-count: 5;
    column-fill: auto;
    column-gap: 0px;
    height: 100px;
    width: 100px;
    position: relative;
    background: red;
  }
  .abs {
    position: absolute;
    width: 10px;
    background: green;
  }
  #flex {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    height: 500px;
  }
  #flex > div {
    background: green;
    width: 10px;
  }
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div class="multicol">
  <div class="abs" style="top: 50px; height: 50px;"></div>
  <div class="abs" style="top: 50px; left: 30px; height: 50px;"></div>
  <div id="flex">
    <div style="height: 50px;"></div>
    <div style="height: 50px; break-before: column;"></div>
    <div style="height: 350px;"></div>
    <div style="height: 100px;"></div>
    <div style="height: 50px;"></div>
    <div style="height: 50px; break-before: column;"></div>
    <div style="height: 250px;"></div>
  </div>
</div>