| Summary: | input with width:0 doesn't hide the file chooser button | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Sam Sneddon [:gsnedders] <gsnedders> | ||||
| Component: | Forms | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | NEW --- | ||||||
| Severity: | Normal | CC: | akeerthi, cdumez, karlcow, webkit-bug-importer, wenson_hsieh | ||||
| Priority: | P2 | Keywords: | BrowserCompat, InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| See Also: |
https://bugs.webkit.org/show_bug.cgi?id=253463 https://bugs.webkit.org/show_bug.cgi?id=259602 |
||||||
| Attachments: |
|
||||||
|
Description
Sam Sneddon [:gsnedders]
2023-03-25 03:34:36 PDT
This looks very similar to Bug 253463 at first sight. The technique in Bug 253463 was to used negative `text-indent` for making the button disappear. In this case they use⦠`width: 0` https://codepen.io/webcompat/pen/QWVYJER OR data:text/html,<input%20type=file%20style="width:0"> It's very similar. Could be the result of some custom logic in `RenderFileUploadControl`... Note that the button is in the UA shadow tree, and has non-zero width. |