Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-ui/text-overflow-string-022.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Basic User Interface Test: text-overflow - string</title>
<link rel="author" title="Minseong Kim" href="mailto:jja08111@gmail.com">
<link rel="match" href="reference/text-overflow-string-016-ref.html">
<meta name="assert" content="Test checks that a next line (U+0085) in text-overflow
string is collapsed like a forced line break and converted to a space.">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
div {
font-family: monospace;
font-size: 10px;
overflow: hidden;
text-overflow: "Hi\85Hi";
/* 120px for four Ahem glyphs + 5ch for the ellipsis string "Hi Hi" which
is monospace. */
width: calc(120px + 5.1ch);
}
span {
font-family: Ahem;
font-size: 30px;
}
</style>
<body>
<p>Test passes if there is an <strong>Hi Hi</strong> after a black rectangle below.</p>
<div>
<span>TestChecksThatTheBrokenContentRepalcedByTextOverflow</span>
</div>
</body>