file-selector-button-after-part.html (598B)
1 <!doctype html> 2 <title>::file-selector-button allows to customize the button in <input type=file></title> 3 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/5049"> 4 <link rel="help" href="https://drafts.csswg.org/css-pseudo/#file-selector-button-pseudo"> 5 <link rel="mismatch" href="file-selector-button-001-notref.html"> 6 <style> 7 #host::part(file-input)::file-selector-button { 8 border: 1px solid green; 9 } 10 </style> 11 <div id="host"></div> 12 <script> 13 document.getElementById("host").attachShadow({ mode: "open" }).innerHTML = ` 14 <input type=file part=file-input> 15 `; 16 </script>