part-nested-pseudo.html (579B)
1 <!doctype html> 2 <title>::part() doesn't incorrectly match pseudo-elements of the part</title> 3 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=978105"> 4 <link rel="help" href="https://drafts.csswg.org/css-shadow-parts/"> 5 <link rel="match" href="part-nested-pseudo-ref.html"> 6 <style> 7 #host::part(input) { 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=input> 15 <input type=text part=input placeholder=Foobar> 16 `; 17 </script>