Status: FAIL | Duration: 11ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-overflow/line-clamp/line-clamp-balance-001.html
<!DOCTYPE html> <html> <meta charset="utf-8"> <title>CSS Overflow: `line-clamp` and text-wrap: balance</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-001-ref.html"> <meta name="assert" content="Checks that balancing happens after clamping, not before."> <style> .clamp { line-clamp: 2; font-family: monospace; width: 8.1ch; /* the extra .1 is just in case the … character isn't perfectly monospaced. */ text-wrap: balance; } </style> <p>Test passes if you see numbers up to 8 (and no further) below. <div class="clamp"> 1 2 3 4 5 6 7 8 9 </div>
/css/css-overflow/line-clamp/reference/line-clamp-balance-001-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"> 1 2 3 4<br> 5 6 7 8… </div>