summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-overflow/reference/webkit-line-clamp-035-ref.html
blob: 230218399e31f9dc79ba6aef2856a16be1ae98b4 (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>
<link rel="stylesheet" href="/fonts/ahem.css">
<style>
#parent {
  display: inline-block;
  background: green;
}
#clamp {
  font-family: Ahem;
  display: block;
  overflow: hidden; /* can be removed once implementations update their old -webkit-line-clamp implementations */
}
</style>
<div id="parent">
  <div id="clamp">
    AAA<br>
    BBB<br>
    CCC<span style="visibility: hidden"></span>
  </div>
</div>