Bug 229150

Summary: Fully use shadow content for <input type=file>
Product: WebKit Reporter: Tim Nguyen (:ntim) <ntim>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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>