wpt / css / css-overflow / line-clamp / webkit-line-clamp-040.html

Status: FAIL | Duration: 10ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-overflow/line-clamp/webkit-line-clamp-040.html

<!doctype html>
<meta charset="utf-8">
<title>CSS Overflow: line-clamp with explicit height</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="author" title="Mozilla" href="https://mozilla.org">
<link rel="help" href="https://drafts.csswg.org/css-overflow-3/#webkit-line-clamp">
<link rel="match" href="reference/webkit-line-clamp-040-ref.html">
<style>
.clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font: 16px / 32px serif;
  white-space: pre;
  background-color: yellow;
  height: 5em;
}
</style>
<div class="clamp">Line 1
Line 2
Line 3
Line 4
Line 5</div>

/css/css-overflow/line-clamp/reference/webkit-line-clamp-040-ref.html

<!doctype html>
<meta charset="utf-8">
<title>CSS Test Reference</title>
<style>
.clamp {
  font: 16px / 32px serif;
  white-space: pre;
  background-color: yellow;
  height: 5em;
}
</style>
<div class="clamp">Line 1
Line 2…
</div>