Status: FAIL | Duration: 10ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-shadow/slotted-details-content.html
<!doctype html> <meta charset="utf-8"> <title>CSS Scoping Test: ::slotted() allows ::details-content</title> <link rel="author" title="Tim Nguyen" href="https://github.com/nt1m"> <link rel="help" href="https://drafts.csswg.org/css-shadow/#slotted-pseudo"> <link rel="match" href="slotted-details-content-ref.html"> <div id="host"> <details open>This text should be green</details> </div> <script> host.attachShadow({ mode: "open" }).innerHTML = ` <style> ::slotted(*)::details-content { color: green } </style> <slot></slot> `; </script>
/css/css-shadow/slotted-details-content-ref.html
<!doctype html> <details open><span style="color: green">This text should be green</span></details>