Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!doctype html>
<title>::file-selector-button allows to customize the button in &lt;input type=file&gt;</title>
<link rel="mismatch" href="file-selector-button-001-notref.html">
<style>
#host::part(file-input)::file-selector-button {
border: 1px solid green;
}
</style>
<div id="host"></div>
<script>
document.getElementById("host").attachShadow({ mode: "open" }).innerHTML = `
<input type=file part=file-input>
`;
</script>