Commit 1a01059
committed
[Forms] Use button instead of push-button appearance for input[type=submit|reset|button]
https://bugs.webkit.org/show_bug.cgi?id=238803
rdar://91624840
Reviewed by Aditya Keerthi.
- Fixes bug reported by GOV.UK about font-size not applying on input[type=file]: https://bugs.webkit.org/show_bug.cgi?id=224746
- Fixes input[type=button|reset|submit] not supporting multi-line values: https://bugs.webkit.org/show_bug.cgi?id=190521
- Fixes input[type=button|reset|submit] not honoring font-size/padding/height/etc. properly like other browsers
* Source/WebCore/rendering/RenderTheme.cpp:
(WebCore::RenderTheme::autoAppearanceForElement const):
Use StyleAppearance::Button instead of StyleAppearance::PushButton
* LayoutTests/fast/css/button-height-expected.txt:
* LayoutTests/fast/css/button-height.html:
Adjust test now that input[type=button] honors height on macOS.
* LayoutTests/platform/ios/css2.1/20110323/replaced-elements-001-expected.txt:
* LayoutTests/platform/ios/css3/flexbox/flexitem-expected.txt:
* LayoutTests/platform/ios/fast/forms/button-style-color-expected.txt:
* LayoutTests/platform/mac-bigsur/fast/css/continuationCrash-expected.txt:
* LayoutTests/platform/mac-bigsur/fast/forms/button-sizes-expected.txt:
* LayoutTests/platform/mac-bigsur/fast/forms/control-restrict-line-height-expected.txt:
* LayoutTests/platform/mac-bigsur/tables/mozilla/bugs/bug2479-3-expected.txt:
* LayoutTests/platform/mac-bigsur/tables/mozilla/bugs/bug26178-expected.txt:
* LayoutTests/platform/mac-monterey/fast/forms/button-sizes-expected.txt:
* LayoutTests/platform/mac-ventura/fast/forms/button-sizes-expected.txt:
* LayoutTests/platform/mac-ventura/fast/forms/input-button-sizes-expected.txt: Added.
* LayoutTests/platform/mac-ventura-wk2-lbse-text/svg/custom/foreign-object-skew-expected.txt:
* LayoutTests/platform/mac/css3/flexbox/button-expected.txt:
* LayoutTests/platform/mac/editing/selection/3690703-2-expected.txt:
* LayoutTests/platform/mac/editing/selection/3690703-expected.txt:
* LayoutTests/platform/mac/editing/selection/3690719-expected.txt:
* LayoutTests/platform/mac/editing/selection/4397952-expected.txt:
* LayoutTests/platform/mac/editing/selection/5240265-expected.txt:
* LayoutTests/platform/mac/editing/selection/selection-button-text-expected.txt:
* LayoutTests/platform/mac/fast/block/float/float-avoidance-expected.txt:
* LayoutTests/platform/mac/fast/css/continuationCrash-expected.txt:
* LayoutTests/platform/mac/fast/css/input-search-padding-expected.txt:
* LayoutTests/platform/mac/fast/css/margin-top-bottom-dynamic-expected.txt:
* LayoutTests/platform/mac/fast/css/rtl-ordering-expected.txt:
* LayoutTests/platform/mac/fast/dom/HTMLTextAreaElement/reset-textarea-expected.txt:
* LayoutTests/platform/mac/fast/forms/001-expected.txt:
* LayoutTests/platform/mac/fast/forms/basic-buttons-expected.txt:
* LayoutTests/platform/mac/fast/forms/blankbuttons-expected.txt:
* LayoutTests/platform/mac/fast/forms/box-shadow-override-expected.txt:
* LayoutTests/platform/mac/fast/forms/button-positioned-expected.txt:
* LayoutTests/platform/mac/fast/forms/button-style-color-expected.txt:
* LayoutTests/platform/mac/fast/forms/button-table-styles-expected.txt:
* LayoutTests/platform/mac/fast/forms/button-text-transform-expected.txt:
* LayoutTests/platform/mac/fast/forms/control-restrict-line-height-expected.txt:
* LayoutTests/platform/mac/fast/forms/file/file-input-direction-expected.txt:
* LayoutTests/platform/mac/fast/forms/file/file-input-disabled-expected.txt:
* LayoutTests/platform/mac/fast/forms/file/input-file-re-render-expected.txt:
* LayoutTests/platform/mac/fast/forms/form-element-geometry-expected.txt:
* LayoutTests/platform/mac/fast/forms/formmove3-expected.txt:
* LayoutTests/platform/mac/fast/forms/input-appearance-height-expected.txt:
* LayoutTests/platform/mac/fast/forms/input-button-sizes-expected.txt:
* LayoutTests/platform/mac/fast/forms/input-value-expected.txt:
* LayoutTests/platform/mac/fast/forms/targeted-frame-submission-expected.txt:
* LayoutTests/platform/mac/fast/html/details-replace-summary-child-expected.txt:
* LayoutTests/platform/mac/fast/html/details-replace-text-expected.txt:
* LayoutTests/platform/mac/fast/overflow/scroll-nested-positioned-layer-in-overflow-expected.txt:
* LayoutTests/platform/mac/fast/overflow/scrollRevealButton-expected.txt:
* LayoutTests/platform/mac/fast/replaced/replaced-breaking-expected.txt:
* LayoutTests/platform/mac/fast/replaced/width100percent-button-expected.txt:
* LayoutTests/platform/mac/fast/text/international/hindi-spacing-expected.txt:
* LayoutTests/platform/mac/fast/text/textIteratorNilRenderer-expected.txt:
* LayoutTests/platform/mac/http/tests/navigation/javascriptlink-frames-expected.txt:
* LayoutTests/platform/mac/svg/custom/foreign-object-skew-expected.txt:
* LayoutTests/platform/mac/tables/mozilla/bugs/bug1188-expected.txt:
* LayoutTests/platform/mac/tables/mozilla/bugs/bug1318-expected.txt:
* LayoutTests/platform/mac/tables/mozilla/bugs/bug138725-expected.txt:
* LayoutTests/platform/mac/tables/mozilla/bugs/bug18359-expected.txt:
* LayoutTests/platform/mac/tables/mozilla/bugs/bug2479-2-expected.txt:
* LayoutTests/platform/mac/tables/mozilla/bugs/bug2479-3-expected.txt:
* LayoutTests/platform/mac/tables/mozilla/bugs/bug2479-4-expected.txt:
* LayoutTests/platform/mac/tables/mozilla/bugs/bug26178-expected.txt:
* LayoutTests/platform/mac/tables/mozilla/bugs/bug28928-expected.txt:
* LayoutTests/platform/mac/tables/mozilla/bugs/bug33855-expected.txt:
* LayoutTests/platform/mac/tables/mozilla/bugs/bug39209-expected.txt:
* LayoutTests/platform/mac/tables/mozilla/bugs/bug4429-expected.txt:
* LayoutTests/platform/mac/tables/mozilla/bugs/bug46368-1-expected.txt:
* LayoutTests/platform/mac/tables/mozilla/bugs/bug46368-2-expected.txt:
* LayoutTests/platform/mac/tables/mozilla/bugs/bug51037-expected.txt:
* LayoutTests/platform/mac/tables/mozilla/bugs/bug51727-expected.txt:
* LayoutTests/platform/mac/tables/mozilla/bugs/bug52505-expected.txt:
* LayoutTests/platform/mac/tables/mozilla/bugs/bug52506-expected.txt:
* LayoutTests/platform/mac/tables/mozilla/bugs/bug60749-expected.txt:
* LayoutTests/platform/mac/tables/mozilla/bugs/bug7342-expected.txt:
* LayoutTests/platform/mac/tables/mozilla/bugs/bug92647-2-expected.txt:
* LayoutTests/platform/mac/tables/mozilla/collapsing_borders/bug41262-4-expected.txt:
* LayoutTests/platform/mac/tables/mozilla/dom/tableDom-expected.txt:
* LayoutTests/platform/mac/tables/mozilla/other/move_row-expected.txt:
* LayoutTests/platform/mac/tables/mozilla_expected_failures/bugs/bug1725-expected.txt:
* LayoutTests/platform/mac/tables/mozilla_expected_failures/bugs/bug2479-5-expected.txt:
* LayoutTests/platform/mac/tables/mozilla_expected_failures/bugs/bug58402-2-expected.txt:
Rebaseline a bunch of tests.
Canonical link: https://commits.webkit.org/258754@main1 parent dd88e1d commit 1a01059
File tree
83 files changed
+500
-418
lines changed- LayoutTests
- fast/css
- platform
- ios
- css2.1/20110323
- css3/flexbox
- fast/forms
- mac-bigsur
- fast
- css
- forms
- tables/mozilla/bugs
- mac-monterey/fast/forms
- mac-ventura-wk2-lbse-text/svg/custom
- mac-ventura/fast/forms
- mac
- css3/flexbox
- editing/selection
- fast
- block/float
- css
- dom/HTMLTextAreaElement
- forms
- file
- html
- overflow
- replaced
- text
- international
- svg/custom
- tables
- mozilla_expected_failures/bugs
- mozilla
- bugs
- collapsing_borders
- dom
- other
- Source/WebCore/rendering
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
83 files changed
+500
-418
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | | - | |
| 9 | + | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 17 | + | |
24 | 18 | | |
25 | 19 | | |
26 | 20 | | |
27 | 21 | | |
28 | | - | |
| 22 | + | |
29 | 23 | | |
30 | 24 | | |
31 | 25 | | |
| |||
45 | 39 | | |
46 | 40 | | |
47 | 41 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 42 | + | |
52 | 43 | | |
53 | 44 | | |
54 | 45 | | |
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
Lines changed: 1 addition & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 18 | + | |
30 | 19 | | |
31 | 20 | | |
32 | 21 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
| 42 | + | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
| 48 | + | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments