File: multicol-gap-decorations-009-ref.html

package info (click to toggle)
firefox 149.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,767,760 kB
  • sloc: cpp: 7,416,064; javascript: 6,752,859; ansic: 3,774,850; python: 1,250,473; xml: 641,578; asm: 439,191; java: 186,617; sh: 56,634; makefile: 18,856; objc: 13,092; perl: 12,763; pascal: 5,960; yacc: 4,583; cs: 3,846; lex: 1,720; ruby: 1,002; php: 436; lisp: 258; awk: 105; sql: 66; sed: 53; csh: 10; exp: 6
file content (95 lines) | stat: -rw-r--r-- 2,608 bytes parent folder | download
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
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-gaps-1/">
<link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com">
<style>
    body {
        margin: 0px;
    }

    .outer {
        position: relative;
        border: 2px solid rgb(96 139 168);
        width: 200px;
        height: 200px;
    }

    .container {
        position: absolute;
        column-gap: 10px;
        display: flex;
    }

    .item {
        background: rgb(96 139 168 / 0.2);
        height: 100%;
        width: 60px;
    }

    .row-gap {
        display: flex;
        position: absolute;
        height: 10px;
        left: -2px;
        width: 204px;
        top: 120px;
        gap: 6px;
    }
    .row-gap > div {
        width: 64px;
        height: 100%;
        background: gold;
    }
    .column-gap {
        position: absolute;
        width: 10px;
        background: blue;
    }

    .spanner {
        position: absolute;
        background: cyan;
        width: 200px;
        height: 18px;
        top: 40px;
        left: 0;
        opacity: 0.5;
    }
</style>

<div class="outer">
    <div class="container" style="top:0; height:40px;">
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
    </div>
    <div class="container" style="top:58px; height:2px;">
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
    </div>
    <div class="container" style="top:70px; height:130px;">
        <div class="item"></div>
        <div class="item"></div>
        <!-- Remove the 6px consumed after the spanner in the first row: -->
        <div class="item" style="height:124px;"></div>
    </div>
    <div class="row-gap" style="top:60px;">
      <div></div>
      <div></div>
      <div></div>
    </div>
    <div class="row-gap" style="top:130px;">
      <div></div>
      <div></div>
      <div></div>
    </div>
    <div class="column-gap" style="top:-2px; left:60px; height:44px;"></div>
    <div class="column-gap" style="top:-2px; left:130px; height:44px;"></div>
    <div class="column-gap" style="top:56px; left:60px; height:6px;"></div>
    <div class="column-gap" style="top:56px; left:130px; height:6px;"></div>
    <div class="column-gap" style="top:68px; left:60px; height:64px;"></div>
    <div class="column-gap" style="top:68px; left:130px; height:64px;"></div>
    <div class="column-gap" style="top:138px; left:60px; height:64px;"></div>
    <div class="column-gap" style="top:138px; left:130px; height:64px;"></div>
    <div class="spanner"></div>
</div>