RESOLVED INVALID 115746
The ellipsis in a text overflow should not avoid floats
https://bugs.webkit.org/show_bug.cgi?id=115746
Summary The ellipsis in a text overflow should not avoid floats
WebKit Commit Bot
Reported 2013-05-07 11:33:00 PDT
Inline box with white-space:nowrap being cliiped at right edge of floated right input Requested by rhogan on #webkit.
Attachments
Reduction (894 bytes, text/html)
2013-05-07 11:33 PDT, Robert Hogan
no flags
Patch (8.08 KB, patch)
2013-05-19 08:34 PDT, Robert Hogan
no flags
Patch (8.12 KB, patch)
2013-05-20 14:34 PDT, Robert Hogan
hyatt: review+
Broken Inspector 1 (16.25 KB, image/png)
2013-06-02 08:09 PDT, Timothy Hatcher
no flags
Broken Inspector 2 (10.21 KB, image/png)
2013-06-02 08:10 PDT, Timothy Hatcher
no flags
Robert Hogan
Comment 1 2013-05-07 11:33:33 PDT
Created attachment 200948 [details] Reduction
Robert Hogan
Comment 2 2013-05-07 11:33:57 PDT
Robert Hogan
Comment 3 2013-05-18 04:39:10 PDT
I think the bug might actually be that we perform the ellipsis before the floating input element. We should do the same as firefox and render the ellipsis at the div's boundary.
Robert Hogan
Comment 4 2013-05-19 08:34:00 PDT
Robert Hogan
Comment 5 2013-05-19 10:18:56 PDT
*** Bug 113229 has been marked as a duplicate of this bug. ***
alan
Comment 6 2013-05-19 10:23:07 PDT
We concluded at <rdar://problem/13008605> that clipping the text at the floating element instead of the containing box is the expected behaviour and hence bug 115675
Robert Hogan
Comment 7 2013-05-19 10:58:56 PDT
(In reply to comment #6) > We concluded at <rdar://problem/13008605> that clipping the text at the floating element instead of the containing box is the expected behaviour and hence bug 115675 That conclusion seems inconsistent with the rendering of overflow:hidden when no text-overflow rendering is specified.
alan
Comment 8 2013-05-19 11:21:50 PDT
(In reply to comment #7) > (In reply to comment #6) > > We concluded at <rdar://problem/13008605> that clipping the text at the floating element instead of the containing box is the expected behaviour and hence bug 115675 > > That conclusion seems inconsistent with the rendering of overflow:hidden when no text-overflow rendering is specified. Correct and according to this (http://lists.w3.org/Archives/Public/www-style/2013Apr/0566.html) and this (https://bugzilla.mozilla.org/show_bug.cgi?id=864759), FF's rendering is claimed to be per spec as opposed to Safari's. (and IE) However, since Safari's current rendering looks visually more correct, and also to not to cause regression, we thought fixing hittest was the right thing to do. ccing Simon.
Dave Hyatt
Comment 9 2013-05-20 12:52:01 PDT
Comment on attachment 202235 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=202235&action=review > Source/WebCore/rendering/RenderBlockLineLayout.cpp:3473 > + int blockLeftEdge = ltr ? pixelSnappedLogicalLeftOffsetForLine(curr->lineTop(), firstLine) : logicalLeftOffsetForContent(curr->lineTop()); Don't you need to pixel snap?
Robert Hogan
Comment 10 2013-05-20 14:34:32 PDT
Dave Hyatt
Comment 11 2013-05-22 13:51:09 PDT
Comment on attachment 202320 [details] Patch r=me
Robert Hogan
Comment 12 2013-05-23 11:56:18 PDT
Benjamin Poulain
Comment 13 2013-05-27 22:13:46 PDT
Looks like you submitted your test with Windows line ending.
Timothy Hatcher
Comment 14 2013-06-02 08:03:36 PDT
This broke a few places in the Safari Web Inspector where we rely on float avoiding the ellipsis. The new behavior is incomprehensible to me and the old behavior makes sense. There is now no way to get the old behavior, unless someone wants to enlighten me. I suggest we revert this or add some way to get the old behavior.
Timothy Hatcher
Comment 15 2013-06-02 08:09:49 PDT
Created attachment 203520 [details] Broken Inspector 1
Timothy Hatcher
Comment 16 2013-06-02 08:10:06 PDT
Created attachment 203521 [details] Broken Inspector 2
Timothy Hatcher
Comment 17 2013-06-02 08:15:23 PDT
As far as I am conceded, overflow: hidden and text-overflow are completely different beasts. With text-overflow: ellipsis you are requesting better handling of text when it overflows or runs out of room on the line. You might as well not even bother now if this is the new "behavior" with floats.
Timothy Hatcher
Comment 18 2013-06-02 08:16:02 PDT
Sigh. s/conceded/concerned/
alan
Comment 19 2013-06-21 03:27:34 PDT
I am rolling this out as the result of the discussion with smfr, hyatt and xenon (1, breaking the inspector 2, the overall functionality of floating element vs. text-overflow.)
alan
Comment 21 2013-06-21 08:47:19 PDT
Boris Zbarsky
Comment 22 2013-11-29 14:20:45 PST
If you think the spec is wrong, shouldn't you at least send spec feedback to that effect?
Note You need to log in before you can comment on or make changes to this bug.