Bug 229150 - Fully use shadow content for <input type=file>
Summary: Fully use shadow content for <input type=file>
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-08-16 09:42 PDT by Tim Nguyen (:ntim)
Modified: 2021-08-23 09:43 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Nguyen (:ntim) 2021-08-16 09:42:16 PDT
looks like one part ("no file selected") is rendered using RenderTheme.mm, while the "Choose File" button is a <input type=button> as shadow content.

Apparently this is historical. I think it would be beneficial to fully use shadow content here.

Worth noting iOS has image previews.
Comment 1 Radar WebKit Bug Importer 2021-08-23 09:43:59 PDT
<rdar://problem/82248658>