Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: LayoutTests/editing/selection/select-text-overflow-ellipsis.html

Issue 1209743004: Invalidate ellipsis box when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/layout/LayoutText.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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>
OLDNEW
« no previous file with comments | « no previous file | Source/core/layout/LayoutText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698