summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-break/table/repeated-section/break-avoidance-in-bottom-caption.tentative.html
blob: fe676fd0c11b5665230f28dfa686d57753c52894 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://www.w3.org/TR/css-tables-3/#repeated-headers">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1356236">
<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="width:100px; height:100px; background:red;">
  <div style="columns:4; column-fill:auto; gap:0; height:150px;">
    <div style="display:table; width:100%;">
      <div style="display:table-header-group; break-inside:avoid;">
        <div style="height:20px; background:green;"></div>
      </div>
      <div style="height:80px; background:green;"></div>
      <div style="height:50px;"></div>
      <div style="height:80px; background:green;"></div>
      <div style="height:50px;"></div>
      <div style="height:30px; background:green;"></div>
      <div style="display:table-caption; caption-side:bottom;">
        <div style="contain:size; height:50px; background:green;"></div>
        <div style="contain:size; height:50px; background:green;"></div>
      </div>
      <div style="display:table-caption; caption-side:bottom; break-before:avoid;">
        <div style="contain:size; height:50px; background:green;"></div>
      </div>
    </div>
  </div>
</div>