Bug 115858

Summary: Ellipsis text is placed to wrong position, when the truncated text is fully cut off in RTL direction.
Product: WebKit Reporter: zalan <zalan>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, commit-queue, darin, esprehn+autocc, glenn, hyatt, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
test case
none
Patch
none
Archive of layout-test-results from webkit-ews-07 for mac-mountainlion
none
Patch
none
test case
none
Patch none

Description zalan 2013-05-09 06:47:47 PDT
<div><input type="text"><strong>push this to the left</strong> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt</div>
 
when the window is sized so that the 'push this to the left' text is fully truncated, the replacement ellipsis is placed over the input box.
Comment 1 zalan 2013-05-09 06:48:29 PDT
Created attachment 201187 [details]
test case
Comment 2 zalan 2013-05-09 13:03:11 PDT
Created attachment 201267 [details]
Patch
Comment 3 zalan 2013-05-09 13:04:42 PDT
notice that this happens when  the inline flow has multiple children (inlinetextboxes)

(I still need to figure out why window.resize() doesnt work locally)
Comment 4 Build Bot 2013-05-09 14:16:51 PDT
Comment on attachment 201267 [details]
Patch

Attachment 201267 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/406557

New failing tests:
fast/css/text-overflow-ellipsis-full-truncate-rtl.html
Comment 5 Build Bot 2013-05-09 14:16:54 PDT
Created attachment 201277 [details]
Archive of layout-test-results from webkit-ews-07 for mac-mountainlion

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-07  Port: mac-mountainlion  Platform: Mac OS X 10.8.2
Comment 6 zalan 2013-05-10 08:01:49 PDT
Created attachment 201344 [details]
Patch
Comment 7 Darin Adler 2013-05-10 17:58:06 PDT
Comment on attachment 201344 [details]
Patch

The title of this bug makes no mention of RTL, but the fix is entirely RFL-specific.
Comment 8 Darin Adler 2013-05-10 17:58:18 PDT
RTL-specific
Comment 9 zalan 2013-05-11 07:24:04 PDT
Created attachment 201457 [details]
test case

this test case requires no manual window resizing to repro the bug.
Comment 10 zalan 2013-05-14 04:34:40 PDT
Created attachment 201698 [details]
Patch
Comment 11 WebKit Commit Bot 2013-05-14 05:26:30 PDT
Comment on attachment 201698 [details]
Patch

Clearing flags on attachment: 201698

Committed r150065: <http://trac.webkit.org/changeset/150065>
Comment 12 WebKit Commit Bot 2013-05-14 05:26:33 PDT
All reviewed patches have been landed.  Closing bug.