OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <meta charset=utf-8> |
| 3 <style> |
| 4 dl { |
| 5 max-width: 20em; |
| 6 margin: auto; |
| 7 font-size: 120%; |
| 8 white-space: nowrap; |
| 9 } |
| 10 dd { |
| 11 overflow: hidden; |
| 12 text-overflow: ellipsis; |
| 13 text-decoration: inherit; |
| 14 direction:rtl; |
| 15 } |
| 16 </style> |
| 17 <p>crbug.com/642454: Don't select part of the ellipsis when wrapping selection.<
/p> |
| 18 <dl> |
| 19 <dd id="selection_with_ellipsis">Lorem ipsum dolor sit amet, consetetur sadi
pscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna a
liquyam erat, sed diam voluptua.</dd> |
| 20 <dt id="wrapped">Lorem ipsum dolor sit amet</dt> |
| 21 </dl> |
| 22 <script src="../../resources/run-after-layout-and-paint.js"></script> |
| 23 <script> |
| 24 runAfterLayoutAndPaint(function() { |
| 25 getSelection().setBaseAndExtent(selection_with_ellipsis.firstChild, 0, w
rapped.firstChild, 10); |
| 26 }, true); |
| 27 </script> |
OLD | NEW |