Bug 267299

Summary: File inputs should have `overflow: clip`
Product: WebKit Reporter: Aditya Keerthi <akeerthi>
Component: FormsAssignee: Aditya Keerthi <akeerthi>
Status: NEW    
Severity: Normal CC: cdumez, karlcow, ntim, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: BrowserCompat, InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   

Aditya Keerthi
Reported 2024-01-09 15:09:00 PST
Align with Chrome and Firefox. Currently, something like data:text/html,<input type=file style="text-indent: -20px"> results in visual overflow. Instead the content should be clipped as it is in other browsers. This is not trivial to fix, as by default, adding `overflow: hidden` to the UA stylesheet will result in the button element inside file inputs also getting clipped. This is due to the default visual overflow on macOS buttons.
Attachments
Radar WebKit Bug Importer
Comment 1 2024-01-16 15:09:42 PST
Tim Nguyen (:ntim)
Comment 2 2025-01-20 23:25:53 PST
*** Bug 286286 has been marked as a duplicate of this bug. ***
Tim Nguyen (:ntim)
Comment 3 2025-01-20 23:27:19 PST
The HTML spec says it should be `overflow: clip`: https://github.com/whatwg/html/issues/9976
Note You need to log in before you can comment on or make changes to this bug.