Bug 144234 - REGRESSION (r176751): line-height ignored in <button> elements
Summary: REGRESSION (r176751): line-height ignored in <button> elements
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac All
: P2 Normal
Assignee: Darin Adler
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-04-26 14:05 PDT by Darin Adler
Modified: 2015-05-06 09:58 PDT (History)
7 users (show)

See Also:


Attachments
Patch (7.46 KB, patch)
2015-04-26 14:08 PDT, Darin Adler
koivisto: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Adler 2015-04-26 14:05:03 PDT
REGRESSION (r176751): line-height ignored in <button> elements
Comment 1 Darin Adler 2015-04-26 14:08:49 PDT
Created attachment 251705 [details]
Patch
Comment 2 Darin Adler 2015-04-26 14:09:23 PDT
<rdar://problem/19297258>
Comment 3 Antti Koivisto 2015-04-26 14:25:20 PDT
Comment on attachment 251705 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=251705&action=review

> Source/WebCore/ChangeLog:9
> +2015-04-26  Darin Adler  <darin@apple.com>
> +
> +        REGRESSION (r176751): line-height ignored in <button> elements
> +        https://bugs.webkit.org/show_bug.cgi?id=144234
> +
> +        Reviewed by NOBODY (OOPS!).
> +
> +        Test: fast/forms/button-line-height.html
> +

It would also be good to explain what the problem was.
Comment 4 Antti Koivisto 2015-04-26 14:31:40 PDT
Comment on attachment 251705 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=251705&action=review

> LayoutTests/fast/forms/button-line-height.html:2
> +<button style="height:24px; margin:0">Button with height</button>

Does this line test anything? The ref is identical.

> LayoutTests/fast/forms/button-line-height.html:4
> +<button style="height:124px; margin:0">Button with height</button>

This too.
Comment 5 Darin Adler 2015-04-26 14:33:17 PDT
(In reply to comment #4)
> Comment on attachment 251705 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=251705&action=review
> 
> > LayoutTests/fast/forms/button-line-height.html:2
> > +<button style="height:24px; margin:0">Button with height</button>
> 
> Does this line test anything? The ref is identical.

It’s just there so when you look at the test buttons in the browser you can compare one with the other right next to it. It’s not really part of the reftest, but I like having it there. Probably should have more things in the test explaining what is there and why. But I’ll just leave it as is for now.

> > LayoutTests/fast/forms/button-line-height.html:4
> > +<button style="height:124px; margin:0">Button with height</button>
> 
> This too.

Ditto.
Comment 7 Brent Fulgham 2015-04-28 10:12:49 PDT
This reference test fails on all of the non-Mac/non-iOS ports. I don't understand why there would be a difference in behavior here, unless Windows (and GTK/EFL) have different default button heights than Mac.
Comment 8 Darin Adler 2015-04-28 10:36:28 PDT
Oops. Maybe just a difference in the exact number of pixels added by padding. I’ll be happy to improve the tests at some point. Feel free to skip them for now.
Comment 9 Alexey Proskuryakov 2015-05-05 18:52:04 PDT
The test is still broken, who can take care of it?

https://webkit-test-results.appspot.com/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=fast%2Fforms%2Fbutton-line-height.html
Comment 10 Darin Adler 2015-05-06 09:01:17 PDT
I’d be happy to do something about the test, but I don’t understand how to read the flakiness dashboard output at that URL. Does it mean the test is failing on all platforms? Or that it’s “flaky” on Mac and failing on others?

I am happy to replace the test with a different one, but I don’t understand the current status well enough to know what problem I am tackling.

The test relies on a specific relationship between the inner and outer dimensions of buttons that I now believe is platform specific. But there may be other problems with the test, too, and I would like to know that before I try to fix it.
Comment 11 Alexey Proskuryakov 2015-05-06 09:58:26 PDT
Nikita skipped the test in bug 183862.

Before the skipping, the flakiness dashboard showed blue for every revision on the below bots, meaning that they failed pixel tests every time (there is a legend for the colors):

- Apple Win 7 Debug (Tests)
- Apple Win 7 Release (Tests)
- EFL Linux 64-bit Release WK2
- GTK Linux 64-bit Debug (Tests)
- GTK Linux 64-bit Release (Tests)

This is all the test queues except for Mac ones.

If you click on one of the blue rectangles, there is a "build log" link, pointing to a buildbot results page. For example, this is how this test fails on Windows:

https://build.webkit.org/results/Apple%20Win%207%20Debug%20(Tests)/r183842%20(66058)/fast/forms/button-line-height-diffs.html