tor-browser

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

grid-order-on-shadow-host.html (1475B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Display: reading-flow with value grid-order on shadow host</title>
      4 <link rel="help" href="https://drafts.csswg.org/css-display-4/#reading-flow">
      5 <link rel="author" title="Di Zhang" href="mailto:dizhangg@chromium.org">
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 <script src="/resources/testdriver.js"></script>
      9 <script src="/resources/testdriver-vendor.js"></script>
     10 <script src="/resources/testdriver-actions.js"></script>
     11 <script src='../../resources/shadow-dom.js'></script>
     12 <script src="../../resources/focus-utils.js"></script>
     13 
     14 <style>
     15 .wrapper {
     16  display: grid;
     17  reading-flow: grid-order;
     18 }
     19 </style>
     20 
     21 <div class="test-case" data-expect="host/B,host/A"
     22      data-description="Grid items in shadow host with delegatesFocus">
     23  <div id="host" class="wrapper" tabindex="0">
     24    <template shadowrootmode="open" shadowrootdelegatesfocus>
     25      <button id="A" style="order: 2">A</button>
     26      <button id="B" style="order: 1">B</button>
     27    </template>
     28  </div>
     29 </div>
     30 
     31 <div class="test-case" data-expect="host2,host2/B,host2/A"
     32      data-description="Grid items in shadow host without delegatesFocus">
     33  <div id="host2" class="wrapper" tabindex="0">
     34    <template shadowrootmode="open">
     35      <button id="A" style="order: 2">A</button>
     36      <button id="B" style="order: 1">B</button>
     37    </template>
     38  </div>
     39 </div>
     40 
     41 <script>
     42 runFocusTestCases();
     43 </script>