| <!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." Because an atomic inline-level |
| | element is treated as a single opaque box by the inline box, its |
| | margins are treated the same as its content and clipped rather than |
| | ellipsed. |
| | https://www.w3.org/TR/css3-ui/#propdef-text-overflow |
| | https://www.w3.org/TR/CSS21/visuren.html#inline-boxes |
| --> |
| <html> |
| <head> |
| <meta charset="utf-8"> |
| <style> |
| body { |
| margin: 0px; |
| font-family: Roboto; |
| font-size: 20px; |
| } |
| #div1 { |
| white-space: nowrap; |
| width: 180px; |
| overflow: hidden; |
| text-overflow: ellipsis; |
| border: 1px solid #000000; |
| } |
| span { |
| background-color: #888888; |
| width: 120px; |
| margin: 10px 40px 10px 40px; |
| display: inline-block; |
| } |
| video { |
| background-color: #888888; |
| width: 120px; |
| margin: 10px 40px 10px 40px; |
| } |
| </style> |
| </head> |
| <body> |
| <div> |
| <div dir="ltr" id="div1"> |
| <span>Span</span> |
| </div> |
| <div dir="ltr" id="div1"> |
| <video></video> |
| </div> |
| <div dir="rtl" id="div1"> |
| <span>Span</span> |
| </div> |
| <div dir="rtl" id="div1"> |
| <video></video> |
| </div> |
| </div> |
| </body> |
| </html> |