wpt / css / css-shadow / part / exportparts-layered.html

Status: FAIL | Duration: 12ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-shadow/part/exportparts-layered.html

<!doctype html>
<meta charset="utf-8">
<link rel="author" href="mailto:wpt@keithcirkel.co.uk" title="Keith Cirkel">
<link rel="help" href="https://drafts.csswg.org/css-shadow/#part">
<link rel="match" href="exportparts-layered.ref.html">
<style>
my-parent::part(base) { font-size: 1px !important; }
my-child::part(base) { font-size: 1px !important; }
my-parent::part(child-base) { font-size: 2rem; }
</style>
<my-parent>
  <template shadowrootmode="open">
    <style>
      :host::part(base) { background: red !important; }
      my-child::part(child-base) { background: red !important; }
      :host::part(child-base) { background: green; }
    </style>
    <my-child exportparts="base:child-base">
      <template shadowrootmode="open">
        <style>
        :host::part(base) { background: red; }
        :host::part(child-base) { background: red !important; }
        </style>
        <span part="base">Should be large and green</span>
      </template>
    </my-child>
  </template>
</my-parent>

/css/css-shadow/part/exportparts-layered.ref.html

<!doctype html>
<title>CSS Test Reference</title>
<span style="background: green;font-size: 2rem;">Should be large and green</span>