| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <title>Test for WebKit bug 29968: Selecting text with text-overflow ellipsis
should not show cut off text</title></head> | 3 <title>Test for WebKit bug 29968: Selecting text with text-overflow ellipsis
should not show cut off text</title></head> |
| 4 <style type="text/css"> | 4 <style type="text/css"> |
| 5 .cutoff { | 5 .cutoff { |
| 6 width: 95px; | 6 width: 95px; |
| 7 white-space: pre; | 7 white-space: pre; |
| 8 overflow: hidden; | 8 overflow: hidden; |
| 9 text-overflow: ellipsis; | 9 text-overflow: ellipsis; |
| 10 } | 10 } |
| 11 </style> | 11 </style> |
| 12 <body> | 12 <body> |
| 13 <h3>Test for <a href='https://bugs.webkit.org/show_bug.cgi?id=29968'>WebKit
bug 29968</a>: Selecting text with text-overflow ellipsis should not show cut of
f text</h3> | 13 <h3>Test for <a href='https://bugs.webkit.org/show_bug.cgi?id=29968'>WebKit
bug 29968</a>: Selecting text with text-overflow ellipsis should not show cut of
f text</h3> |
| 14 <div id="selection_with_ellipsis" class="cutoff">Lorem ipsum dolor</div> | 14 <div id="selection_with_ellipsis" class="cutoff">Lorem ipsum dolor</div> |
| 15 <script type="text/javascript"> | 15 <script src="../../resources/run-after-layout-and-paint.js"></script> |
| 16 getSelection().setBaseAndExtent(selection_with_ellipsis.firstChild, 0, sel
ection_with_ellipsis.firstChild, 11); | 16 <script> |
| 17 runAfterLayoutAndPaint(function() { |
| 18 getSelection().setBaseAndExtent(selection_with_ellipsis.firstChild, 0, s
election_with_ellipsis.firstChild, 11); |
| 19 }, true); |
| 17 </script> | 20 </script> |
| 18 </body> | 21 </body> |
| 19 </html> | 22 </html> |
| OLD | NEW |