summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-break/tall-line-in-short-fragmentainer-000.html
blob: 8e9515c4b6c0f85e8fe7635e207f2f67cb7283b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://www.w3.org/TR/css-break-3/#unforced-breaks">
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="columns:3; column-fill:auto; column-gap:0; width:300px; height:50px;">
  <div style="width:200px; height:0;">
    <div style="height:20px; background:red;"></div>
  </div>
  <!-- No valid breakpoint here, since the preceding sibling takes up no space
       (and its overflowing child ends up in a parallel flow). -->
  <div style="height:120px;">
    <!-- Can't break inside lines. Let it overflow the (shorter) fragmentainer,
         but not its container. Consume 100px from it. -->
    <div style="display:inline-block; vertical-align:top; width:100px; height:100px; background:green;"></div>
  </div>
  <div style="margin-top:-20px; height:20px; background:white;"></div>
</div>