tor-browser

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

shadow-multiple-links.html (690B)


      1 <!doctype html>
      2 <title>CSS Test: ShadowRoot with multiple sheet links with the same href shouldn't crash</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
      6 <link rel="help" href="https://drafts.csswg.org/css-scoping/#selectors-data-model">
      7 <div id="host"></div>
      8 <script>
      9 test(function() {
     10  host.attachShadow({ mode: "open" }).innerHTML = `
     11    <link rel="stylesheet" href="data:text/css,">
     12    <link rel="stylesheet" href="data:text/css,">
     13  `;
     14 }, "Multiple stylesheets with the same href in a ShadowRoot should not assert or crash");
     15 </script>