Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-pseudo/file-selector-button-after-part.html - WPT Dashboard Interop Dashboard
<!doctype html>
<title>::file-selector-button allows to customize the button in <input type=file></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>