summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-page/page-name-margin-001-print-ref.html
blob: 60726e6e15454340ac99b39db513c678516f8182 (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
<!DOCTYPE html>
<html>
  <style>
@page {
    margin: 0;
}
.block {
    width: 1cm;
    height: 1cm;
    border: 2px solid red;
}
  </style>
  <body>
    <div style="padding: 0; break-after: page">
      <div class="block" style="border-color: lightblue"></div>
    </div>
    <div style="padding: 1cm; break-after: page">
      <div class="block" style="border-color: pink"></div>
    </div>
    <div style="padding: 2cm">
      <div class="block" style="border-color: gray"></div>
    </div>
  </body>
</html>