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-with-text-overflow-string-003.html
<!DOCTYPE html> <meta charset="utf-8"> <title>CSS Overflow: line-clamp with text-overflow<string></title> <link rel="author" title="Andreu Botella" href="mailto:abotella@igalia.com"> <link rel="help" href="https://drafts.csswg.org/css-overflow-4/#line-clamp"> <link rel="match" href="reference/line-clamp-with-text-overflow-string-003-ref.html"> <meta name="assert" content="If text-overflow has a string value, all lines that ellipsize because of that property should use that string as the ellipsis. This should happen even inside of a line-clamp container."> <style> .clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; font: 16px / 32px monospace; white-space: pre; background-color: yellow; padding: 0 4px; width: 35.1ch; text-overflow: "-"; overflow: hidden; } </style> <div class="clamp">Line 1 Line 2 overflows the line-clamp container Line 3 Line 4 Line 5</div>
/css/css-overflow/line-clamp/reference/line-clamp-with-text-overflow-string-003-ref.html
<!DOCTYPE html> <meta charset="utf-8"> <title>CSS Reference</title> <style> .clamp { font: 16px / 32px monospace; white-space: pre; background-color: yellow; padding: 0 4px; width: 35.1ch; } </style> <div class="clamp">Line 1 Line 2 overflows the line-clamp co- Line 3 Line 4…</div>