summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-break/break-inside-avoid-multicol-001-print.html
blob: a97ac9f5cdad2d191588dbdc6a2de80607a00a43 (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
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE html>
<html>
  <meta charset="utf-8">
  <title>CSS Fragmentation Test: Print a multi-column container containing break-inside:avoid elements</title>
  <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
  <link rel="author" title="Mozilla" href="https://www.mozilla.org/">
  <link rel="help" href="https://drafts.csswg.org/css-break-3/#break-within">
  <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1831829">
  <link rel="match" href="break-inside-avoid-multicol-001-print-ref.html">

  <style>
  @page {
    size: 5in 3in;
    margin: 0.5in;
  }
  body {
    margin: 0;
  }
  article {
    column-count: 2;
    column-gap: 0;
  }
  article > div {
    width: 100%;
    height: 3in;
    background: green;
    break-inside: avoid;
  }
  </style>

  <article>
    <!-- page 1 -->
    <div></div>

    <!-- page 2 -->
    <div></div>
  </article>
</html>