RESOLVED WORKSFORME 53438
Text-overflow is broken for button elements
https://bugs.webkit.org/show_bug.cgi?id=53438
Summary Text-overflow is broken for button elements
Erik Arvidsson
Reported 2011-01-31 10:21:51 PST
Created attachment 80654 [details] Test case Button elements ignore the text-overflow CSS property. This is probably related to bug 5990 since buttons use a flex box shadow DOM.
Attachments
Test case (231 bytes, text/html)
2011-01-31 10:21 PST, Erik Arvidsson
no flags
Patch (2.85 KB, patch)
2011-08-17 13:52 PDT, Igor Trindade Oliveira
no flags
Patch (5.59 KB, patch)
2011-08-17 14:45 PDT, Igor Trindade Oliveira
no flags
Patch (5.59 KB, patch)
2011-08-18 06:57 PDT, Igor Trindade Oliveira
no flags
Patch (5.65 KB, patch)
2011-08-18 07:06 PDT, Igor Trindade Oliveira
hyatt: review-
hyatt: commit-queue-
Patch (7.56 KB, patch)
2011-08-22 14:40 PDT, Igor Trindade Oliveira
hyatt: review-
hyatt: commit-queue-
Patch (7.56 KB, patch)
2011-08-22 15:02 PDT, Igor Trindade Oliveira
hyatt: review+
webkit.review.bot: commit-queue-
rendering in safari, firefox, chrome (97.36 KB, image/png)
2022-06-02 20:33 PDT, Karl Dubost
no flags
Igor Trindade Oliveira
Comment 1 2011-08-17 13:52:10 PDT
Created attachment 104230 [details] Patch Proposed patch.
Erik Arvidsson
Comment 2 2011-08-17 13:54:44 PDT
Comment on attachment 104230 [details] Patch Missing tests?
Igor Trindade Oliveira
Comment 3 2011-08-17 14:45:07 PDT
Created attachment 104250 [details] Patch Updated patch. Add a simple test.
Igor Trindade Oliveira
Comment 4 2011-08-18 06:57:54 PDT
Created attachment 104333 [details] Patch Updated Patch. The expected result just makes sense for Qt.
WebKit Review Bot
Comment 5 2011-08-18 07:01:16 PDT
Attachment 104333 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/fast..." exit_code: 1 LayoutTests/ChangeLog:1: ChangeLog entry has no bug number [changelog/bugnumber] [5] Total errors found: 1 in 6 files If any of these errors are false positives, please file a bug against check-webkit-style.
Igor Trindade Oliveira
Comment 6 2011-08-18 07:06:10 PDT
Created attachment 104334 [details] Patch Updated patch. Fix style.
Dave Hyatt
Comment 7 2011-08-18 12:39:06 PDT
Comment on attachment 104334 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=104334&action=review r- > Source/WebCore/rendering/RenderBlockLineLayout.cpp:1222 > - bool hasTextOverflow = style()->textOverflow() && hasOverflowClip(); > + bool hasTextOverflow = style()->textOverflow(); I think you probably wanted this to be: bool hasTextOverflow = style()->textOverflow() && (hasOverflowClip() || hasControlClip()); It's definitely incorrect to make text overflow apply when overflow is visible. I suspect this is just a case where the control clip needed to be considered as well since it's supposed to behave like overflow in this case.
Igor Trindade Oliveira
Comment 8 2011-08-22 14:40:50 PDT
Created attachment 104741 [details] Patch Proposed patch.
Dave Hyatt
Comment 9 2011-08-22 14:48:01 PDT
Comment on attachment 104741 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=104741&action=review r- > Source/WebCore/rendering/RenderBox.h:346 > + virtual bool hasControlClip() const { return parentBox() && parentBox()->hasControlClip() && isAnonymousBlock(); } I'd move isAnonymousBlock to be the first condition in the return statement instead of the last. > Source/WebCore/rendering/RenderBox.h:347 > + virtual LayoutRect controlClipRect(const IntPoint&) const; Don't change the interface here. Should still be layoutpoint.
Igor Trindade Oliveira
Comment 10 2011-08-22 14:58:27 PDT
(In reply to comment #9) > (From update of attachment 104741 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=104741&action=review > > r- > > > Source/WebCore/rendering/RenderBox.h:346 > > + virtual bool hasControlClip() const { return parentBox() && parentBox()->hasControlClip() && isAnonymousBlock(); } > > I'd move isAnonymousBlock to be the first condition in the return statement instead of the last. > Ok > > Source/WebCore/rendering/RenderBox.h:347 > > + virtual LayoutRect controlClipRect(const IntPoint&) const; > > Don't change the interface here. Should still be layoutpoint. Sorry, it was the leftover of the last patch.
Igor Trindade Oliveira
Comment 11 2011-08-22 15:02:16 PDT
Created attachment 104745 [details] Patch Updated patch.
Dave Hyatt
Comment 12 2011-08-22 15:22:30 PDT
Comment on attachment 104745 [details] Patch r=me
WebKit Review Bot
Comment 13 2011-08-22 16:51:45 PDT
Comment on attachment 104745 [details] Patch Rejecting attachment 104745 [details] from commit-queue. Failed to run "['./Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '--bot-id=ec2-cq-03', '--port..." exit_code: 2 Last 500 characters of output: fast/text/international/danda-space.html = IMAGE fast/text/international/thai-baht-space.html = IMAGE fast/text/international/thai-line-breaks.html = IMAGE platform/chromium-linux/fast/text/international/complex-joining-using-gpos.html = IMAGE svg/custom/inline-svg-in-xhtml.xml = IMAGE tables/mozilla/bugs/bug138725.html = IMAGE tables/mozilla_expected_failures/collapsing_borders/bug41262-5.html = IMAGE tables/mozilla_expected_failures/collapsing_borders/bug41262-6.html = IMAGE Full output: http://queues.webkit.org/results/9478015
WebKit Review Bot
Comment 14 2011-08-22 18:16:25 PDT
Comment on attachment 104745 [details] Patch Attachment 104745 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/9468964 New failing tests: svg/custom/inline-svg-in-xhtml.xml fast/forms/control-clip-overflow.html tables/mozilla_expected_failures/collapsing_borders/bug41262-5.html tables/mozilla_expected_failures/collapsing_borders/bug41262-6.html tables/mozilla/bugs/bug138725.html
Andreas Kling
Comment 15 2011-08-23 10:30:11 PDT
Comment on attachment 104745 [details] Patch Let's try that once again.
WebKit Review Bot
Comment 16 2011-08-23 12:01:05 PDT
Comment on attachment 104745 [details] Patch Rejecting attachment 104745 [details] from commit-queue. Failed to run "['./Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '--bot-id=ec2-cq-03', '--port..." exit_code: 2 Last 500 characters of output: fast/text/international/danda-space.html = IMAGE fast/text/international/thai-baht-space.html = IMAGE fast/text/international/thai-line-breaks.html = IMAGE platform/chromium-linux/fast/text/international/complex-joining-using-gpos.html = IMAGE svg/custom/inline-svg-in-xhtml.xml = IMAGE tables/mozilla/bugs/bug138725.html = IMAGE tables/mozilla_expected_failures/collapsing_borders/bug41262-5.html = IMAGE tables/mozilla_expected_failures/collapsing_borders/bug41262-6.html = IMAGE Full output: http://queues.webkit.org/results/9478487
Igor Trindade Oliveira
Comment 17 2011-08-25 11:37:25 PDT
Igor Trindade Oliveira
Comment 18 2011-08-25 14:02:39 PDT
Reopen the bug. Rollout of change set 93799 committed in change set http://trac.webkit.org/changeset/93820
Eric Seidel (no email)
Comment 19 2011-12-21 14:34:03 PST
Attachment 104745 [details] was posted by a committer and has review+, assigning to Igor Trindade Oliveira for commit.
Rob Buis
Comment 20 2013-02-20 13:19:07 PST
*** Bug 100218 has been marked as a duplicate of this bug. ***
Rob Buis
Comment 21 2013-02-20 13:44:29 PST
(In reply to comment #19) > Attachment 104745 [details] was posted by a committer and has review+, assigning to Igor Trindade Oliveira for commit. I am confused, is this ready to go in or are the reported fails real? Cheers, Rob.
Igor Trindade Oliveira
Comment 22 2013-02-20 14:52:09 PST
The fails are real. (In reply to comment #21) > (In reply to comment #19) > > Attachment 104745 [details] [details] was posted by a committer and has review+, assigning to Igor Trindade Oliveira for commit. > > I am confused, is this ready to go in or are the reported fails real? > Cheers, > > Rob.
Karl Dubost
Comment 23 2022-05-23 14:45:22 PDT
I'm tempted to close here as Safari and Firefox latest versions behave as expected (aka ellipsis is visible). This has been fixed elsewhere probably.
Karl Dubost
Comment 24 2022-06-02 20:33:47 PDT
Created attachment 459980 [details] rendering in safari, firefox, chrome Same rendering in all browsers.
Note You need to log in before you can comment on or make changes to this bug.