wpt / css / css-overflow / line-clamp / block-ellipsis-037.html

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

/css/css-overflow/line-clamp/block-ellipsis-037.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Overflow: no-ellipsis when there's not enough room</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<link rel="help" href="https://drafts.csswg.org/css-overflow-4/#block-ellipsis">
<link rel="match" href="reference/block-ellipsis-023-ref.html">
<meta name="assert" content="block-ellipsis: no-ellipsis must not displace content to make room for the (non-existant) ellipsis. this should also be the case when max-lines: auto">
<style>
.clamp {
  line-clamp: auto no-ellipsis;
  max-height: 4lh;
  width: 32ch;
  font-family: monospace;
}
</style>
<div class="clamp">
  Test passes if there are 4 lines
  and the last two are identical
  supercalifragilisticexpialidocious
  supercalifragilisticexpialidocious
  Test fails: this should not be visible
</div>

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

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Overflow: test reference</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<style>
.clamp {
  width: 32ch;
  font-family: monospace;
}
</style>
<div class="clamp">
Test passes if there are 4 lines
and the last two are identical
supercalifragilisticexpialidocious
supercalifragilisticexpialidocious
</div>