Bug 238803 - [Forms] Use button instead of push-button appearance for input[type=submit|reset|button]
Summary: [Forms] Use button instead of push-button appearance for input[type=submit|re...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Tim Nguyen (:ntim)
URL:
Keywords: BrowserCompat, InRadar, WPTImpact
: 26804 190521 224746 (view as bug list)
Depends on:
Blocks: 245355
  Show dependency treegraph
 
Reported: 2022-04-05 07:33 PDT by Tim Nguyen (:ntim)
Modified: 2023-03-29 10:13 PDT (History)
11 users (show)

See Also:


Attachments
Patch (1.52 KB, patch)
2022-04-05 10:21 PDT, Tim Nguyen (:ntim)
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (9.84 KB, patch)
2022-11-24 12:09 PST, Tim Nguyen (:ntim)
ews-feeder: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Nguyen (:ntim) 2022-04-05 07:33:53 PDT
A couple of tests in html/rendering/widgets/button-layout/ are expecting <input type=submit|reset|button> to look the same as <button>, making them the same appearance would be a good first step.
Comment 1 Tim Nguyen (:ntim) 2022-04-05 07:39:05 PDT
One important bug switching from button to push-button fixes is:

Code: <input type=button value="1&#10;2">

Testcase URL: data:text/html,%3Cinput type%3Dbutton value%3D"1%26%2310%3B2"%3E

Should appear the same as: <button>1<br>2</button>

Right now it appears as: <button>1</button>

Tested by html/rendering/widgets/button-layout/inline-level.html WPT
Comment 2 Tim Nguyen (:ntim) 2022-04-05 08:48:43 PDT
<input type=button> does not respect author sizing (padding/height/etc.), while <button> does. <button> behavior is more in line with other browsers, switching from push-button to button appearance fixes this.
Comment 3 Tim Nguyen (:ntim) 2022-04-05 10:21:07 PDT
Created attachment 456715 [details]
Patch
Comment 4 Radar WebKit Bug Importer 2022-04-12 07:34:15 PDT
<rdar://problem/91624840>
Comment 5 Tim Nguyen (:ntim) 2022-07-01 19:04:20 PDT
*** Bug 190521 has been marked as a duplicate of this bug. ***
Comment 6 Tim Nguyen (:ntim) 2022-11-24 12:09:16 PST
Created attachment 463716 [details]
Patch
Comment 7 Tim Nguyen (:ntim) 2022-12-29 19:45:53 PST
Work needed here is mostly rebaselining, it would be nice to fix this so multi-line text and padding are respected for `<input type="submit/reset/button">`.
Comment 8 Tim Nguyen (:ntim) 2022-12-29 19:46:32 PST
(also makes vertical form controls slightly easier to implement)
Comment 9 Tim Nguyen (:ntim) 2023-01-10 01:21:10 PST
Pull request: https://github.com/WebKit/WebKit/pull/8440
Comment 10 EWS 2023-01-10 16:59:44 PST
Committed 258754@main (1a0105921def): <https://commits.webkit.org/258754@main>

Reviewed commits have been landed. Closing PR #8440 and removing active labels.
Comment 11 Tim Nguyen (:ntim) 2023-01-10 17:38:12 PST
*** Bug 224746 has been marked as a duplicate of this bug. ***
Comment 12 Ahmad Saleem 2023-03-29 10:13:11 PDT
*** Bug 26804 has been marked as a duplicate of this bug. ***