RESOLVED FIXED Bug 238252
[Forms] Alias appearance <compat-auto> keywords to 'auto' for button
https://bugs.webkit.org/show_bug.cgi?id=238252
Summary [Forms] Alias appearance <compat-auto> keywords to 'auto' for button
zsun
Reported 2022-03-23 04:17:13 PDT
We need to alias the <compat-auto> keywords 'auto' for button.
Attachments
Patch (6.39 KB, patch)
2022-03-23 04:30 PDT, zsun
no flags
Patch (7.24 KB, patch)
2022-03-23 08:32 PDT, zsun
no flags
Patch (7.24 KB, patch)
2022-03-23 08:48 PDT, zsun
no flags
zsun
Comment 1 2022-03-23 04:30:48 PDT
zsun
Comment 2 2022-03-23 08:32:51 PDT
Darin Adler
Comment 3 2022-03-23 08:41:08 PDT
Comment on attachment 455502 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=455502&action=review > Source/WebCore/ChangeLog:9 > + handle some button ralted cases including button, push-button and square-button. ralted -> related > LayoutTests/fast/forms/file/file-style-inheritance.html:9 > - /* Uses square-button for ease of testing on Mac. */ > - -webkit-appearance: square-button; > + /* Uses none for ease of testing on Mac. */ > + -webkit-appearance: none; Does this still test what it intends to, given that it’s using "none" for appearance?
zsun
Comment 4 2022-03-23 08:48:50 PDT
zsun
Comment 5 2022-03-23 12:06:44 PDT
(In reply to Darin Adler from comment #3) > Comment on attachment 455502 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=455502&action=review > > > Source/WebCore/ChangeLog:9 > > + handle some button ralted cases including button, push-button and square-button. > > ralted -> related > > > LayoutTests/fast/forms/file/file-style-inheritance.html:9 > > - /* Uses square-button for ease of testing on Mac. */ > > - -webkit-appearance: square-button; > > + /* Uses none for ease of testing on Mac. */ > > + -webkit-appearance: none; > > Does this still test what it intends to, given that it’s using "none" for > appearance? I think so. The test is to check if "Choose File" button of a file upload control correctly inherit the style of the container input element, not focusing on the button type. Also moving "-webkit-appearance: square-button" to "-webkit-appearance: none" in Chromium was done by the original test writer.
zsun
Comment 6 2022-03-28 05:04:15 PDT
Landing this patch. The failure in ios-wk2 doesn't look related.
EWS
Comment 7 2022-03-28 05:10:06 PDT
Committed r291962 (248927@main): <https://commits.webkit.org/248927@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 455504 [details].
Radar WebKit Bug Importer
Comment 8 2022-03-28 05:11:48 PDT
Note You need to log in before you can comment on or make changes to this bug.