summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-overflow/reference/line-clamp-013-ref.html
blob: b2eb05e884d781ae9d5fdaa690e17be60607d97f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference</title>
<style>
.clamp {
  font: 16px / 32px serif;
  padding: 4px;
  white-space: pre;
  background-color: yellow;
  border: 2px solid black;
}
.inner {
  background-color: skyblue;
  height: 3lh;
  padding: 4px;
  border: 2px solid purple;
}
</style>
<div class="clamp">Line 1
Line 2<div class="inner">Line 3
Line 4…</div></div>
<p>Following content.</p>