| <!DOCTYPE html> |
| <meta charset="utf-8"> |
| <title>CSS Overflow: right-aligned -webkit-line-clamp ellipsis</title> |
| <link rel="help" href="https://drafts.csswg.org/css-overflow-4/#propdef--webkit-line-clamp"> |
| <link rel="match" href="reference/webkit-line-clamp-051-ref.html"> |
| <meta name="assert" content="If the -webkit-line-clamp ellipsis would be placed in a right-aligned line, the alignment happens after placing the ellipsis, which means the ellipsis ends at the right edge of the line."> |
| <style> |
| .clamp { |
| display: -webkit-box; |
| -webkit-box-orient: vertical; |
| -webkit-line-clamp: 2; |
| overflow: hidden; |
| |
| width: 10em; |
| border: 2px solid black; |
| text-align: right; |
| } |
| </style> |
| <div class="clamp"> |
| Line 1 <br> |
| Line 2 <br> |
| Line 3 |
| </div> |