summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-view-transitions/break-inside-avoid-child-ref.html
blob: 859abdfb5f259021120d3810fa3fadce8be968c5 (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
<!DOCTYPE html>
<title>View transitions: break-inside: avoid child (ref)</title>
<link rel="help" href="https://www.w3.org/TR/css-view-transitions-1/">
<link rel="author" href="mailto:vmpstr@chromium.org">

<style>
.columns {
  columns: 2;
  contain: layout;
  border: 1px solid black;
}

.inner {
  break-inside: avoid;
  position: relative;
  top: 300px;
  left: 0;
  background: lightblue;
  width: 300px;
  height: 300px;
}
</style>

<div class="columns">
  <div class="inner"></div>
</div>