blob: 0f3a625201706b80a7654bb266564cc80b582901 [file] [log] [blame]
<!DOCTYPE html>
<!--
| When the "text-overflow" property is set to "ellipsis" an ellipsis
| character is rendered to represent clipped inline content.
| "The first character or atomic inline-level element on a line must
| be clipped rather than ellipsed."
| https://www.w3.org/TR/css3-ui/#propdef-text-overflow
-->
<html>
<head>
<meta charset="utf-8">
<style>
body {
margin: 0px;
font-family: Roboto;
font-size: 20px;
}
div {
white-space: nowrap;
width: 20px;
overflow: hidden;
text-overflow: ellipsis;
border: 1px solid #000000;
}
</style>
</head>
<body>
<div>
<div dir="ltr">Thisissomelongtextthatwillnotfitinthebox</div>
<div dir="ltr"><span>Thisissomelongtextthatwillnotfitinthebox</span></div>
<div dir="rtl">Thisissomelongtextthatwillnotfitinthebox</div>
<div dir="rtl"><span></span>Thisissomelongtextthatwillnotfitinthebox</div>
</div>
</body>
</html>