script: Implement shadow tree for file input (#43498)

script: Implement shadow tree for file input

File inputs also now support ::file-selector-button

Testing: Existing WPTs
Fixes: https://github.com/servo/servo/issues/39565

Stylo PR: https://github.com/servo/stylo/pull/341

Signed-off-by: Luke Warlow <lwarlow@igalia.com>
Co-authored-by: Vasiluță Mihai-Alexandru <alexv@siluta.me>
This commit is contained in:
Luke Warlow
2026-03-27 12:15:50 +00:00
committed by GitHub
parent 442c63e2d9
commit 563dd06e52
15 changed files with 170 additions and 58 deletions

View File

@@ -889,8 +889,7 @@ impl HTMLInputElement {
InputType::Radio(_) |
InputType::Image(_) |
InputType::Hidden(_) |
InputType::Range(_) |
InputType::File(_) => input_type.as_specific().value_for_shadow_dom(self),
InputType::Range(_) => input_type.as_specific().value_for_shadow_dom(self),
_ => {
if let Some(attribute_value) = self
.upcast::<Element>()