non-table.html (1103B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>HTML Test: focusgroup - Validate that Focusgroup doesn't work when not set on a table element</title> 4 <link rel="author" title="Microsoft" href="http://www.microsoft.com/"> 5 <link rel="help" href="https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/Focusgroup/explainer.md"> 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/focusgroup-utils.js"></script> 12 13 <div focusgroup=grid> 14 <span id=nonitem1 tabindex=0>nonitem1</span> 15 <span id=nonitem2 tabindex=0>nonitem2</span> 16 </div> 17 18 <script> 19 promise_test(async t => { 20 var nonitem1 = document.getElementById("nonitem1"); 21 22 await focusAndKeyPress(nonitem1, kArrowRight); 23 assert_equals(document.activeElement, nonitem1); 24 }, "Validates that focusgroup=grid set on a non table layout doesn't become a grid focusgroup nor a linear one."); 25 26 </script>