summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-multicol/composited-under-clip-under-multicol.html
blob: a47ed89a2e0eb11624bfb5c96d547f632f9c27e7 (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
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-multicol">
<link rel="match" href="composited-under-clip-under-multicol-ref.html">
<meta name="assert" content="Test that clip under multicol is correctly applied on composited child">
<style>
.columns {
  columns: 2;
  column-gap: 20px;
  width: 220px;
  height: 100px;
}
.clip {
  height: 100px;
  overflow: hidden;
}
.composited {
  will-change: transform;
  margin-top: -20px;
  margin-left: -20px;
  border: 20px solid red;
  width: 200px;
  height: 200px;
  background: green;
}
</style>
<div class="columns">
  <div class="clip">
    <div class="composited"></div>
  </div>
  <div class="clip"></div>
</div>