summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-overflow/reference/webkit-line-clamp-038-ref.html
blob: bd8db762dd889c65d55a31e33ce9913a125fff3a (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: 3;
  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
  </div>
</div>