wpt / css / css-overflow / line-clamp / line-clamp-balance-002.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/line-clamp-balance-002.html

<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>CSS Overflow: `line-clamp` and text-wrap: balance, nested</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<link rel="help" href="https://drafts.csswg.org/css-overflow-4/#line-clamp">
<link rel="match" href="reference/line-clamp-balance-002-ref.html">
<meta name="assert" content="Checks that balancing happens after clamping, not before, including in nested blocks.">
<style>
.clamp {
  line-clamp: 3;
  font-family: monospace;
  width: 8.1ch; /* the extra .1 is just in case the … character isn't perfectly monospaced. */
}
.balance {
    text-wrap: balance;
}
</style>
<p>Test passes if you see numbers up to 8 (and no further) below.

<div class="clamp">
    0
    <div class=balance>
    1 2 3 4 5 6 7 8 9
    </div>
    10
</div>

/css/css-overflow/line-clamp/reference/line-clamp-balance-002-ref.html

<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>CSS Overflow: test reference</title>
<style>
.clamp {
  font-family: monospace;
}
</style>
<p>Test passes if you see numbers up to 8 (and no further) below.

<div class="clamp">
    0<br>
    1 2 3 4<br>
    5 6 7 8…
</div>