summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-overflow/reference/webkit-line-clamp-039-ref.html
blob: fd8a76b2f8e67a901500dd0ae26074f2404518a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<style>
.clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  font: 16px / 32px serif;
  background-color: yellow;
  overflow: hidden;
}
</style>
<div class="clamp">
  <div>
    Line 1<br>Line 2<br>Line 3<br>Line 4<br>Line 5<br>Line 6
  </div>
</div>