Fix for WebKit bug 29968 - Selecting text with text-overflow ellipsis
[WebKit-https.git] / LayoutTests / editing / selection / select-text-overflow-ellipsis.html
1 <html>
2   <head>
3     <title>Test for WebKit bug 29968: Selecting text with text-overflow ellipsis should not show cut off text</head>
4   <style type="text/css">
5     .cutoff {
6       width: 95px;
7       white-space: pre;
8       overflow: hidden;
9       text-overflow: ellipsis;
10     }
11   </style>
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 off text</h3>
14     <div id="selection_with_ellipsis" class="cutoff">Lorem ipsum dolor</div>
15     <script type="text/javascript">
16       getSelection().setBaseAndExtent(selection_with_ellipsis.firstChild, 0, selection_with_ellipsis.firstChild, 11);
17     </script>
18   </body>
19 </html>