[Webkit-unassigned] [Bug 129313] Ellipsis is not properly placed for truncated text inside blocks with horizontal border or padding
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Mar 6 09:01:17 PST 2014
https://bugs.webkit.org/show_bug.cgi?id=129313
--- Comment #10 from Mario Sanchez Prada <mario at webkit.org> 2014-03-06 08:58:18 PST ---
Thanks for the quick review! I'll address all the issues mentioned, but in the meanwhile see my comments below...
(In reply to comment #9)
> (From update of attachment 225983 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=225983&action=review
>
> > LayoutTests/ChangeLog:14
> > + * platform/gtk/fast/css/text-overflow-ellipsis-block-with-border-and-padding-expected.png: Added.
>
> You are missing other platforms' expected results.
Yes, but I was hoping to fix that situation in the next version of the patch (taking the output from the EWS bots), or as a follow-up gardening patch, by using the webkit-patch rebaseline tool (as I'm unable to test this myself in all the other platforms)
> > LayoutTests/fast/css/text-overflow-ellipsis-block-with-border-and-padding.html:9
> > + padding: 0px 5px 0px 20px;
>
> It would be great to see more test with different combination's of paddings/margins, including negative vales. (left > right, left == right, etc)
I can add a few more cases in the layout test, sure.
> > Source/WebCore/rendering/RenderBlockLineLayout.cpp:2099
> > + curr->adjustLogicalPosition(logicalLeft - (availableLogicalWidth - totalLogicalWidth), 0);
>
> Normally availableLogicalWidth <= totalLogicalWidth, so (availableLogicalWidth - totalLogicalWidth) usually ends up being <= 0. Since you are pushing to the right direction starting from logicalLeft, to make it more clear, i'd code it like -> logicalLeft + (totalLogicalWidth - availableLogicalWidth)
Ok.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list