summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-break/rounded-clipped-border-ref.html
blob: be08126fd2c3bab356a3a4fd5ff1cc1579184662 (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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">

<style>
  .container {
    float: left;
    margin: 10px;
    text-align: center;
    inline-size: fit-content;
  }
  .multicol {
    inline-size: 320px;
    block-size: 120px;
    border: solid;
    background: lightgray;
  }
  .column {
    float: left;
    inline-size: 100px;
    margin-inline-start: 10px;
  }
  .column:first-child {
    margin-inline-start:0;
  }
  .clipper {
    position: relative;
    border-radius: 50px;
    border: 20px solid blue;
    overflow: clip;
    background: red;
  }
  .clipper.part1 {
    block-size: 100px;
    border-block-end: none;
    border-end-start-radius: 0;
    border-end-end-radius: 0;
  }
  .clipper.part2 {
    block-size: 120px;
    border-block-start: none;
    border-block-end: none;
    border-radius: 0;
  }
  .clipper.part3 {
    block-size: 80px;
    border-block-start: none;
    border-start-start-radius: 0;
    border-start-end-radius: 0;
  }
  .child {
    block-size: 300px;
    background: yellow;
  }
</style>

<p>In each figure there should be a yellow box with a rounded blue border around
  it, split into three columns. There should be no red.</p>

<div class="container">
  horizontal-tb:
  <div class="multicol">
    <div class="column">
      <div class="clipper part1">
        <div class="child"></div>
      </div>
    </div>
    <div class="column">
      <div class="clipper part2">
        <div class="child"></div>
      </div>
    </div>
    <div class="column">
      <div class="clipper part3">
        <div class="child"></div>
      </div>
    </div>
  </div>
</div>

<div class="container">
  vertical-rl:
  <div class="multicol" style="writing-mode:vertical-rl;">
    <div class="column">
      <div class="clipper part1">
        <div class="child"></div>
      </div>
    </div>
    <div class="column">
      <div class="clipper part2">
        <div class="child"></div>
      </div>
    </div>
    <div class="column">
      <div class="clipper part3">
        <div class="child"></div>
      </div>
    </div>
  </div>
</div>

<div class="container">
  vertical-lr:
  <div class="multicol" style="writing-mode:vertical-lr;">
    <div class="column">
      <div class="clipper part1">
        <div class="child"></div>
      </div>
    </div>
    <div class="column">
      <div class="clipper part2">
        <div class="child"></div>
      </div>
    </div>
    <div class="column">
      <div class="clipper part3">
        <div class="child"></div>
      </div>
    </div>
  </div>
</div>