wpt / css / css-overflow / line-clamp / block-ellipsis-008.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/block-ellipsis-008.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Overflow: block-ellipsis and ::first-line</title>
<link rel="author" title="Andreu Botella" href="mailto:abotella@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-overflow-4/#block-ellipsis">
<link rel="match" href="reference/block-ellipsis-007-ref.html">
<meta name="assert" content="The block overflow ellipsis must not be included in the ::first-line pseudoelement of a parent of the line-clamp container.">
<style>
.clamp {
  line-clamp: 1;
  color: teal;
}
.container::first-line {
  color: purple;
  font-weight: bold;
  font-style: italic;
  font-size: 1.5em;
}
</style>
<div class="container">
  <div class="clamp">
    Line 1<br>
    Line 2
  </div>
</div>

/css/css-overflow/line-clamp/reference/block-ellipsis-007-ref.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference</title>
<style>
.clamp {
  color: teal;
}
.first-line {
  color: purple;
  font-weight: bold;
  font-style: italic;
  font-size: 1.5em;
}
</style>
<div class="clamp">
  <span class="first-line">Line 1</span>…
</div>