tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

contentvisibility-nestedslot-crash.html (843B)


      1 <!DOCTYPE html>
      2 <html class="test-wait">
      3 <link rel="author" title="Joey Arhar" href="mailto:jarhar@chromium.org">
      4 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1208573">
      5 
      6 <div style="content-visibility:hidden">hidden</div>
      7 
      8 <div id=host>
      9  <template shadowrootmode=open>
     10    <div>nested slots:</div>
     11    <slot name=parent>
     12      <slot name=child></slot>
     13    </slot>
     14  </template>
     15  <div slot=parent>lightdom slot=parent</div>
     16  <div slot=child>lightdom slot=child</div>
     17 </div>
     18 
     19 <script>
     20  requestAnimationFrame(() => {
     21    requestAnimationFrame(() => {
     22      const div = document.createElement('div');
     23      div.textContent = 'new lightdom child';
     24      host.appendChild(div);
     25 
     26      requestAnimationFrame(() => {
     27        document.documentElement.classList.remove('test-wait');
     28      });
     29    });
     30  });
     31 </script>