summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/legend-in-slot.html
blob: c4ab5a3ea0e6d68d4019f786d6e4559f8f31728c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<link rel="match" href="legend-in-slot-ref.html">

<div id="host">
  <legend id="legend">Was rendered legend</legend>
  <legend>Is rendered legend</legend>
</div>
<script>
let root = document.querySelector('#host').attachShadow({mode:"open"});
root.innerHTML = `
<fieldset>
  <slot></slot>
</fieldset>`;
document.body.offsetTop;
document.querySelector('#legend').remove();
</script>