summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-overflow/line-clamp-014.tentative.html
blob: 9ca7c8937248f482aec2976490c2c86b945f0dfd (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 Overflow: line-clamp doesn't apply to inline boxes</title>
<link rel="author" title="Andreu Botella" href="mailto:abotella@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-overflow-4/#line-clamp">
<link rel="match" href="reference/webkit-line-clamp-001-ref.html">
<meta name="assert" content="line-clamp only affects block containers, not inline boxes">
<style>
.block {
  font: 16px / 32px serif;
  background-color: yellow;
}
.clamp {
  line-clamp: 4;
  white-space: pre;
}
</style>
<div class="block"><span class="clamp">Line 1
Line 2
Line 3
Line 4
Line 5</span></div>