summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/multicol/flipped-blocks-border-after.html
blob: eaf3d9dd0953ea3eb2f5ea3bb76a09cde9f71529 (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
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
<!DOCTYPE html>
<style>
    .test { position: absolute; }
    .pos1 { left: 50px; top: 50px;}
    .pos2 { left: 250px; top: 50px;}
    .pos3 { left: 50px; top: 300px;}
    .pos4 { left: 250px; top: 300px;}

    .multicol {
        border: 0 solid black;
        background-color: red;
        width: 100px;
        height: 100px;
        -webkit-column-gap: 0;
        -webkit-columns: 2;
    }
    .multicol > div {
        background-color: green;
    }

    .horizontal_bt {
        -webkit-writing-mode: horizontal-bt;
        border-top-width: 50px;
    }
    .horizontal_tb {
        -webkit-writing-mode: horizontal-tb;
        border-bottom-width: 50px;
    }
    .vertical_rl {
        -webkit-writing-mode: vertical-rl;
        border-left-width: 50px;
    }
    .vertical_lr {
        -webkit-writing-mode: vertical-lr;
        border-right-width: 50px;
    }
    .horizontal_bt > div, .horizontal_tb > div {
        height: 100px;
    }
    .vertical_lr > div, .vertical_rl > div {
        width: 100px;
    }
    .break_before {
         -webkit-column-break-before: always;
    }
</style>
<p>
    There should be four green squares below, plus a large black border on one side, as
    indicated. There should be no red.
</p>
<div class="test pos1">
    <p>Border above</p>
    <div class="multicol horizontal_bt">
        <div></div><div class="break_before"></div>
    </div>
</div>
<div class="test pos2">
    <p>Border below</p>
    <div class="multicol horizontal_tb">
        <div></div><div class="break_before"></div>
    </div>
</div>
<div class="test pos3">
    <p>Border left</p>
    <div class="multicol vertical_rl">
        <div></div><div class="break_before"></div>
    </div>
</div>
<div class="test pos4">
    <p>Border right</p>
    <div class="multicol vertical_lr">
        <div></div><div class="break_before"></div>
    </div>
</div>