| Summary: | [Forms] Use button instead of push-button appearance for input[type=submit|reset|button] | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Tim Nguyen (:ntim) <ntim> | ||||||
| Component: | CSS | Assignee: | Tim Nguyen (:ntim) <ntim> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | changseok, esprehn+autocc, ews-watchlist, glenn, jasneet, karlcow, kondapallykalyan, MatsPalmgren_bugz, pdr, vanita.barrett, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | BrowserCompat, InRadar, WPTImpact | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=224746 | ||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 245355 | ||||||||
| Attachments: |
|
||||||||
|
Description
Tim Nguyen (:ntim)
2022-04-05 07:33:53 PDT
One important bug switching from button to push-button fixes is: Code: <input type=button value="1 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 <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. Created attachment 456715 [details]
Patch
*** Bug 190521 has been marked as a duplicate of this bug. *** Created attachment 463716 [details]
Patch
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">`. (also makes vertical form controls slightly easier to implement) Pull request: https://github.com/WebKit/WebKit/pull/8440 Committed 258754@main (1a0105921def): <https://commits.webkit.org/258754@main> Reviewed commits have been landed. Closing PR #8440 and removing active labels. *** Bug 224746 has been marked as a duplicate of this bug. *** *** Bug 26804 has been marked as a duplicate of this bug. *** |