Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Overflow: reference</title>
<link rel="author" title="Christian Biesinger" href="mailto:cbiesinger@igalia.com">
<style>
div {
font: 20px/1.2 monospace;
width: 10ch;
border: 1px solid;
margin: 4px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
</style>
<p>Test passes if this page renders the same as its reference, which shows the same text as content truncated by text-overflow.
<div>very long block ellipsis</div>
<div dir="rtl">very long block ellipsis</div>
<div>אבגדה ופזחטי כלמנ</div>
<div dir="rtl">אבגדה ופזחטי כלמנ</div>
<div>abc אבגדה def ופזח</div>
<div dir="rtl">abc אבגדה def ופזח</div>
<div>אבג defghijklmn</div>
<div dir="rtl">אבג defghijklmn</div>