Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-overflow/text-overflow-in-anonymous-block.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>text-overflow applies to the lines of the anonymous block boxes of a block container</title>
<link rel="match" href="text-overflow-in-anonymous-block-ref.html">
<link rel="stylesheet" href="/fonts/ahem.css">
<style>
div.clipped { overflow: hidden; text-overflow: ellipsis; width: 100px; white-space: pre; font: 10px/1 Ahem; }
</style>
<!-- The inline content ends up in an anonymous block box, which does not inherit overflow or text-overflow. -->
<div class=clipped>this text should have ellipsis<div style="height: 0"></div></div>