File: paint-order-001-print-ref.html

package info (click to toggle)
thunderbird 1%3A143.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 4,703,968 kB
  • sloc: cpp: 7,770,492; javascript: 5,943,842; ansic: 3,918,754; python: 1,418,263; xml: 653,354; asm: 474,045; java: 183,079; sh: 111,238; makefile: 20,410; perl: 14,359; objc: 13,059; yacc: 4,583; pascal: 3,405; lex: 1,720; ruby: 999; exp: 762; sql: 715; awk: 580; php: 436; lisp: 430; sed: 69; csh: 10
file content (96 lines) | stat: -rw-r--r-- 2,477 bytes parent folder | download | duplicates (8)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<style>
  @page {
    margin: 0;
    size: 500px 400px;
  }
  :root {
    print-color-adjust: exact;
  }
  body {
    display: grid;
    grid-template-columns: 100px auto 100px;
    grid-template-rows: 100px auto 100px;
    height: 100vh;
    margin: 0;
  }
  .box {
    border: solid thin;
    flex: 1;
  }
  body > .box {
    background: pink;
  }
  .vertical-edge {
    display: flex;
  }
  .horizontal-edge {
    display: flex;
    flex-flow: column;
  }
  .vertical-edge > .box.first {
    width: 5em;
    margin: 5px -4em;
    background: hotpink;
  }
  .vertical-edge > .box.second {
    width: 5em;
    flex: none;
    margin: 10px 0;
    background: cyan;
  }
  .vertical-edge > .box.third {
    margin: 15px -4em;
    background: yellow;
  }
  .horizontal-edge > .box.first {
    height: 5em;
    margin: -4em 5px;
    background: hotpink;
  }
  .horizontal-edge > .box.second {
    height: 5em;
    flex: none;
    margin: 0 10px;
    background: cyan;
  }
  .horizontal-edge > .box.third {
    margin: -4em 15px;
    background: yellow;
  }
  .pagearea {
    padding: 8px;
  }
</style>

<div class="box" style="margin-left:20px; z-index:0;"></div>
<div class="vertical-edge">
  <div class="box first" style="z-index:1;"></div>
  <div class="box second" style="z-index:2;"></div>
  <div class="box third" style="z-index:3;"></div>
</div>
<div class="box" style="margin-top:20px; z-index:4;"></div>
<div class="horizontal-edge">
  <div class="box third" style="z-index:15;"></div>
  <div class="box second" style="z-index:14;"></div>
  <div class="box first" style="z-index:13;"></div>
</div>
<div class="pagearea">
  Default margin box paint order should start with top-left-corner, then go
  clockwise. Hotpink boxes should be on top of pink ones. Cyan on top of
  hotpink. Yellow on top of cyan. No text ("FAIL") should be seen in the margin
  boxes.
</div>
<div class="horizontal-edge">
  <div class="box first" style="z-index:5;"></div>
  <div class="box second" style="z-index:6;"></div>
  <div class="box third" style="z-index:7;"></div>
</div>
<div class="box" style="margin-bottom:20px; z-index:12;"></div>
<div class="vertical-edge">
  <div class="box third" style="z-index:11;"></div>
  <div class="box second" style="z-index:10;"></div>
  <div class="box first" style="z-index:9;"></div>
</div>
<div class="box" style="margin-right:20px; z-index:8;"></div>