tor-browser

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

access-from-shadow-dom.html (699B)


      1 <!DOCTYPE html>
      2 <title>Counter styles defined in the document tree scope should be globally accessible</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-counter-styles-3/#the-counter-style-rule">
      4 <link rel="help" href="https://drafts.csswg.org/css-scoping/#shadow-names">
      5 <link rel="author" href="mailto:xiaochengh@chromium.org">
      6 <link rel="match" href="access-from-shadow-dom-ref.html">
      7 
      8 <style>
      9 @counter-style foo {
     10  system: fixed;
     11  symbols: A B C;
     12 }
     13 </style>
     14 
     15 <div id="host"></div>
     16 
     17 <script>
     18 document.getElementById("host").attachShadow({mode: 'open'}).innerHTML = `
     19 <ol style="list-style-type: foo; list-style-position: inside">
     20  <li></li>
     21  <li></li>
     22  <li></li>
     23 </ol>
     24 `
     25 </script>