Bug 238252 - [Forms] Alias appearance <compat-auto> keywords to 'auto' for button
Summary: [Forms] Alias appearance <compat-auto> keywords to 'auto' for button
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: zsun
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-03-23 04:17 PDT by zsun
Modified: 2022-03-28 05:11 PDT (History)
8 users (show)

See Also:


Attachments
Patch (6.39 KB, patch)
2022-03-23 04:30 PDT, zsun
no flags Details | Formatted Diff | Diff
Patch (7.24 KB, patch)
2022-03-23 08:32 PDT, zsun
no flags Details | Formatted Diff | Diff
Patch (7.24 KB, patch)
2022-03-23 08:48 PDT, zsun
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description zsun 2022-03-23 04:17:13 PDT
We need to alias the <compat-auto> keywords 'auto' for button.
Comment 1 zsun 2022-03-23 04:30:48 PDT
Created attachment 455488 [details]
Patch
Comment 2 zsun 2022-03-23 08:32:51 PDT
Created attachment 455502 [details]
Patch
Comment 3 Darin Adler 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?
Comment 4 zsun 2022-03-23 08:48:50 PDT
Created attachment 455504 [details]
Patch
Comment 5 zsun 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.
Comment 6 zsun 2022-03-28 05:04:15 PDT
Landing this patch. The failure in ios-wk2 doesn't look related.
Comment 7 EWS 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].
Comment 8 Radar WebKit Bug Importer 2022-03-28 05:11:48 PDT
<rdar://problem/90917113>