wpt / css / css-shadow / host-in-host-selector.html

Status: PASS | Duration: 47ms | Subtests: 1/1 | Open test on wpt.live | wpt.fyi

/css/css-shadow/host-in-host-selector.html

<!DOCTYPE html>
<title>CSS Scoping: :host(:host)</title>
<link rel="help" href="https://drafts.csswg.org/css-shadow/#host-selector">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="host">
  <template shadowrootmode="open">
    <style>
      /* Should not match */
      :host(:host) {
        --x:FAIL;
      }
    </style>
  </template>
</div>
<script>
  test(() => {
    assert_equals(getComputedStyle(host).getPropertyValue('--x'), '');
  });
</script>