<!DOCTYPE html>
<link rel="author" title="David Shin" href="mailto:dshin@mozilla.com">
<link rel="help" href="https://drafts.csswg.org/selectors/#relational">
<link rel="help" href="https://drafts.csswg.org/css-nesting-1/#nest-selector">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1940212">
<style>
::slotted(p) {:has(&){}}
</style>
<p>Test</p>
