commit 3d0c92c0068eed69081e95fcb4c656c9d5945e4a parent 54465fb0296d33eb7bc206981d03bb8b4c55ce9a Author: Jacques Newman <janewman@microsoft.com> Date: Thu, 11 Dec 2025 09:26:49 +0000 Bug 2004846 [wpt PR 56584] - [focusgroup] Use entry priority to compute entry element of a segment., a=testonly Automatic update from web-platform-tests [focusgroup] Use entry priority to compute entry element of a segment. This change uses the new attribute that informs focusgroup which element should have initial focus when entering, either when `no-memory` is present, or when entering the focusgroup for the first time. See github issue and section in the explainer: * https://github.com/openui/open-ui/issues/1314 * https://open-ui.org/components/scoped-focusgroup.explainer/#entry-priority-control Relatedly, with this change, focusgroup no longer considers elements that are not keyboard focusable (tabindex=-1) to be participating in the focusgroup, necessitating test updates. Tests for tabindex priority and direction removed because tabindex is no longer considered when determining entry elements. Only memory and focusgroup-entry-priority attribute matter now. Bug: 40210717 Change-Id: I300808592a573faccacfa8421d885d48e7013e9a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7164517 Reviewed-by: Mason Freed <masonf@chromium.org> Commit-Queue: Jacques Newman <janewman@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1555844} -- wpt-commits: 83e8826d86fd6ad573aa0c1fba3dc1b5c760a68a wpt-pr: 56584 Diffstat:
63 files changed, 207 insertions(+), 207 deletions(-)
diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/does-not-move-when-on-focusgroup-root.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/does-not-move-when-on-focusgroup-root.html @@ -10,9 +10,9 @@ <script src="/resources/testdriver-actions.js"></script> <script src="../resources/focusgroup-utils.js"></script> -<div id=root tabindex=-1 focusgroup="toolbar"> +<div id=root tabindex=0 focusgroup="toolbar"> <span id=item1 tabindex=0>item1</span> - <span id=item2 tabindex=-1>item2</span> + <span id=item2 tabindex=0>item2</span> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/does-not-move-when-on-non-focusgroup-item.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/does-not-move-when-on-non-focusgroup-item.html @@ -12,7 +12,7 @@ <div focusgroup="toolbar"> <span id=item1 tabindex=0>item1</span> - <span id=item2 tabindex=-1>item2</span> + <span id=item2 tabindex=0>item2</span> </div> <!-- Element outside focusgroup should not participate --> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/does-not-move-when-outside-focusgroup.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/does-not-move-when-outside-focusgroup.html @@ -12,9 +12,9 @@ <div focusgroup="toolbar"> <span id=item1 tabindex=0>item1</span> - <span id=item2 tabindex=-1>item2</span> + <span id=item2 tabindex=0>item2</span> </div> -<span id=out tabindex=-1>out</span> +<span id=out tabindex=0>out</span> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/does-not-wrap-when-not-supported.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/does-not-wrap-when-not-supported.html @@ -12,7 +12,7 @@ <div focusgroup="toolbar"> <span id=item1 tabindex=0>item1</span> - <span id=item2 tabindex=-1>item2</span> + <span id=item2 tabindex=0>item2</span> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/horizontal/does-not-ascend-out-of-focusgroup.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/horizontal/does-not-ascend-out-of-focusgroup.html @@ -11,9 +11,9 @@ <script src="../../resources/focusgroup-utils.js"></script> <ul focusgroup="toolbar inline"> - <li id=item1 tabindex="-1"> + <li id=item1 tabindex="0"> <ul focusgroup="toolbar block"> - <li id=item2 tabindex="-1">item2</li> + <li id=item2 tabindex="0">item2</li> </ul> </li> </ul> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/horizontal/does-not-move-when-axis-not-supported.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/horizontal/does-not-move-when-axis-not-supported.html @@ -12,7 +12,7 @@ <div id=root focusgroup="toolbar block"> <span id=item1 tabindex=0>item1</span> - <span id=item2 tabindex=-1>item2</span> + <span id=item2 tabindex=0>item2</span> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/horizontal/does-not-wrap-in-orthogonal-axis.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/horizontal/does-not-wrap-in-orthogonal-axis.html @@ -12,8 +12,8 @@ <div focusgroup="toolbar block wrap"> <span id=item1 tabindex=0>item1</span> - <span id=item2 tabindex=-1>item2</span> - <span id=item3 tabindex=-1>item3</span> + <span id=item2 tabindex=0>item2</span> + <span id=item3 tabindex=0>item3</span> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/horizontal/moves-when-only-current-axis-supported.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/horizontal/moves-when-only-current-axis-supported.html @@ -12,7 +12,7 @@ <div id=root focusgroup="toolbar inline"> <span id=item1 tabindex=0>item1</span> - <span id=item2 tabindex=-1>item2</span> + <span id=item2 tabindex=0>item2</span> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/horizontal/wraps-in-axis.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/horizontal/wraps-in-axis.html @@ -12,8 +12,8 @@ <div focusgroup="toolbar inline wrap"> <span id=item1 tabindex=0>item1</span> - <span id=item2 tabindex=-1>item2</span> - <span id=item3 tabindex=-1>item3</span> + <span id=item2 tabindex=0>item2</span> + <span id=item3 tabindex=0>item3</span> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/moves-to-previous-item-and-skips-focusable-item.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/moves-to-previous-item-and-skips-focusable-item.html @@ -13,7 +13,7 @@ <div focusgroup="toolbar"> <span id=item1 tabindex=0>item1</span> <span id=item2>item2</span> <!--NOT FOCUSABLE--> - <span id=item3 tabindex=-1>item3</span> + <span id=item3 tabindex=0>item3</span> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/moves-to-previous-item.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/moves-to-previous-item.html @@ -12,7 +12,7 @@ <div focusgroup="toolbar"> <span id=item1 tabindex=0>item1</span> - <span id=item2 tabindex=-1>item2</span> + <span id=item2 tabindex=0>item2</span> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/skips-non-focusgroup-subtree.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/skips-non-focusgroup-subtree.html @@ -13,10 +13,10 @@ <div focusgroup="toolbar wrap"> <span id=item1 tabindex=0>item1</span> <div focusgroup="none"> - <span id=item2 tabindex=-1>item2</span> - <span id=item3 tabindex=-1>item3</span> + <span id=item2 tabindex=0>item2</span> + <span id=item3 tabindex=0>item3</span> </div> - <span id=item4 tabindex=-1>item4</span> + <span id=item4 tabindex=0>item4</span> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/skips-root-focusgroup-complex-case.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/skips-root-focusgroup-complex-case.html @@ -14,15 +14,15 @@ <span id=item1 tabindex=0>item1</span> <div> <div focusgroup="toolbar"> - <div id=item2 tabindex=-1> + <div id=item2 tabindex=0> <div focusgroup="toolbar"> - <span id=item3 tabindex=-1>item3</span> - <span id=item4 tabindex=-1>item4</span> + <span id=item3 tabindex=0>item3</span> + <span id=item4 tabindex=0>item4</span> </div> </div> </div> </div> - <span id=item5 tabindex=-1>item5</span> + <span id=item5 tabindex=0>item5</span> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/skips-root-focusgroup.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/skips-root-focusgroup.html @@ -14,11 +14,11 @@ <span id=item1 tabindex=0>item1</span> <div> <div focusgroup="toolbar"> - <span id=item2 tabindex=-1>item2</span> - <span id=item3 tabindex=-1>item3</span> + <span id=item2 tabindex=0>item2</span> + <span id=item3 tabindex=0>item3</span> </div> </div> - <span id=item4 tabindex=-1>item4</span> + <span id=item4 tabindex=0>item4</span> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/vertical/does-not-ascend-out-of-focusgroup.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/vertical/does-not-ascend-out-of-focusgroup.html @@ -11,9 +11,9 @@ <script src="../../resources/focusgroup-utils.js"></script> <ul focusgroup="toolbar block"> - <li id=item1 tabindex="-1"> + <li id=item1 tabindex="0"> <ul focusgroup="toolbar inline"> - <li id=item2 tabindex="-1">item2</li> + <li id=item2 tabindex="0">item2</li> </ul> </li> </ul> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/vertical/does-not-move-when-axis-not-supported.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/vertical/does-not-move-when-axis-not-supported.html @@ -12,7 +12,7 @@ <div id=root focusgroup="toolbar inline"> <span id=item1 tabindex=0>item1</span> - <span id=item2 tabindex=-1>item2</span> + <span id=item2 tabindex=0>item2</span> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/vertical/does-not-wrap-in-orthogonal-axis.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/vertical/does-not-wrap-in-orthogonal-axis.html @@ -12,8 +12,8 @@ <div focusgroup="toolbar inline wrap"> <span id=item1 tabindex=0>item1</span> - <span id=item2 tabindex=-1>item2</span> - <span id=item3 tabindex=-1>item3</span> + <span id=item2 tabindex=0>item2</span> + <span id=item3 tabindex=0>item3</span> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/vertical/moves-when-only-current-axis-supported.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/vertical/moves-when-only-current-axis-supported.html @@ -12,7 +12,7 @@ <div id=root focusgroup="toolbar block"> <span id=item1 tabindex=0>item1</span> - <span id=item2 tabindex=-1>item2</span> + <span id=item2 tabindex=0>item2</span> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/vertical/wraps-in-axis.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/vertical/wraps-in-axis.html @@ -12,8 +12,8 @@ <div focusgroup="toolbar block wrap"> <span id=item1 tabindex=0>item1</span> - <span id=item2 tabindex=-1>item2</span> - <span id=item3 tabindex=-1>item3</span> + <span id=item2 tabindex=0>item2</span> + <span id=item3 tabindex=0>item3</span> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/wraps-successfully-complex-case.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/wraps-successfully-complex-case.html @@ -16,8 +16,8 @@ <span id=nonitem2>nonitem2</span> </div> <span id=item1 tabindex=0>item1</span> - <span id=item2 tabindex=-1>item2</span> - <span id=item3 tabindex=-1>item3</span> + <span id=item2 tabindex=0>item2</span> + <span id=item3 tabindex=0>item3</span> <div> <span id=nonitem3>nonitem3</span> <span id=nonitem4>nonitem4</span> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/wraps-successfully.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/backward-navigation/wraps-successfully.html @@ -12,8 +12,8 @@ <div focusgroup="toolbar wrap"> <span id=item1 tabindex=0>item1</span> - <span id=item2 tabindex=-1>item2</span> - <span id=item3 tabindex=-1>item3</span> + <span id=item2 tabindex=0>item2</span> + <span id=item3 tabindex=0>item3</span> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/behavior-first-requirement.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/behavior-first-requirement.html @@ -13,33 +13,33 @@ <!-- Valid behavior-first examples --> <div id=valid1 focusgroup="toolbar"> <span id=item1 tabindex=0>item1</span> - <span id=item2 tabindex=-1>item2</span> + <span id=item2 tabindex=0>item2</span> </div> <div id=valid2 focusgroup="tablist inline"> <span id=item3 tabindex=0>item3</span> - <span id=item4 tabindex=-1>item4</span> + <span id=item4 tabindex=0>item4</span> </div> <div id=valid3 focusgroup="radiogroup wrap"> <span id=item5 tabindex=0>item5</span> - <span id=item6 tabindex=-1>item6</span> + <span id=item6 tabindex=0>item6</span> </div> <!-- Invalid behavior-first examples (should be ignored) --> <div id=invalid1 focusgroup=""> <span id=item7 tabindex=0>item7</span> - <span id=item8 tabindex=-1>item8</span> + <span id=item8 tabindex=0>item8</span> </div> <div id=invalid2 focusgroup="inline"> <span id=item9 tabindex=0>item9</span> - <span id=item10 tabindex=-1>item10</span> + <span id=item10 tabindex=0>item10</span> </div> <div id=invalid3 focusgroup="wrap"> <span id=item11 tabindex=0>item11</span> - <span id=item12 tabindex=-1>item12</span> + <span id=item12 tabindex=0>item12</span> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/behavior-tokens-comprehensive.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/behavior-tokens-comprehensive.html @@ -13,44 +13,44 @@ <!-- Test all behavior tokens for basic navigation --> <div id=toolbar focusgroup="toolbar"> <span id=toolbar1 tabindex=0>toolbar1</span> - <span id=toolbar2 tabindex=-1>toolbar2</span> + <span id=toolbar2 tabindex=0>toolbar2</span> </div> <div id=tablist focusgroup="tablist"> <span id=tablist1 tabindex=0>tablist1</span> - <span id=tablist2 tabindex=-1>tablist2</span> + <span id=tablist2 tabindex=0>tablist2</span> </div> <div id=radiogroup focusgroup="radiogroup"> <span id=radiogroup1 tabindex=0>radiogroup1</span> - <span id=radiogroup2 tabindex=-1>radiogroup2</span> + <span id=radiogroup2 tabindex=0>radiogroup2</span> </div> <div id=listbox focusgroup="listbox"> <span id=listbox1 tabindex=0>listbox1</span> - <span id=listbox2 tabindex=-1>listbox2</span> + <span id=listbox2 tabindex=0>listbox2</span> </div> <div id=menu focusgroup="menu"> <span id=menu1 tabindex=0>menu1</span> - <span id=menu2 tabindex=-1>menu2</span> + <span id=menu2 tabindex=0>menu2</span> </div> <div id=menubar focusgroup="menubar"> <span id=menubar1 tabindex=0>menubar1</span> - <span id=menubar2 tabindex=-1>menubar2</span> + <span id=menubar2 tabindex=0>menubar2</span> </div> <table id=grid focusgroup="grid"> <tr> <td id=grid1 tabindex=0>grid1</td> - <td id=grid2 tabindex=-1>grid2</td> + <td id=grid2 tabindex=0>grid2</td> </tr> </table> <div id=none_test focusgroup="none"> <span id=none1 tabindex=0>none1</span> - <span id=none2 tabindex=-1>none2</span> + <span id=none2 tabindex=0>none2</span> </div> <script> @@ -85,7 +85,7 @@ // Create elements dynamically to test combinations const testDiv = document.createElement('div'); testDiv.setAttribute('focusgroup', 'toolbar inline wrap'); - testDiv.innerHTML = '<span id=combo1 tabindex=0>combo1</span><span id=combo2 tabindex=-1>combo2</span>'; + testDiv.innerHTML = '<span id=combo1 tabindex=0>combo1</span><span id=combo2 tabindex=0>combo2</span>'; document.body.appendChild(testDiv); var combo1 = document.getElementById('combo1'); @@ -102,7 +102,7 @@ // Test grid with modifiers const testTable = document.createElement('table'); testTable.setAttribute('focusgroup', 'grid row-wrap col-flow'); - testTable.innerHTML = '<tr><td id=gridcombo1 tabindex=0>gridcombo1</td><td id=gridcombo2 tabindex=-1>gridcombo2</td></tr>'; + testTable.innerHTML = '<tr><td id=gridcombo1 tabindex=0>gridcombo1</td><td id=gridcombo2 tabindex=0>gridcombo2</td></tr>'; document.body.appendChild(testTable); var gridcombo1 = document.getElementById('gridcombo1'); diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/descendant-navigation/deeply-nested-items.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/descendant-navigation/deeply-nested-items.html @@ -15,22 +15,22 @@ <div class="container"> <div class="sub-container"> <div class="deep-container"> - <span id=item2 tabindex=-1>Item 2 (deeply nested)</span> + <span id=item2 tabindex=0>Item 2 (deeply nested)</span> </div> </div> </div> <span> <span> - <span id=item3 tabindex=-1>Item 3 (nested in spans)</span> + <span id=item3 tabindex=0>Item 3 (nested in spans)</span> </span> </span> <div> <p>Some text</p> <div> - <span id=item4 tabindex=-1>Item 4 (nested)</span> + <span id=item4 tabindex=0>Item 4 (nested)</span> </div> </div> - <span id=item5 tabindex=-1>Item 5</span> + <span id=item5 tabindex=0>Item 5</span> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/descendant-navigation/mixed-content-navigation.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/descendant-navigation/mixed-content-navigation.html @@ -16,13 +16,13 @@ <div class="section"> <h3>Section Title</h3> <p>Some descriptive text that is not focusable</p> - <span id=item2 tabindex=-1>Item 2</span> + <span id=item2 tabindex=0>Item 2</span> <div> <span>More non-focusable content</span> <div> <span>Nested non-focusable</span> - <span id=item3 tabindex=-1>Item 3</span> + <span id=item3 tabindex=0>Item 3</span> <span>More text</span> </div> </div> @@ -31,14 +31,14 @@ <div class="another-section"> <ul> <li>List item (not focusable)</li> - <li><span id=item4 tabindex=-1>Item 4</span></li> + <li><span id=item4 tabindex=0>Item 4</span></li> <li>Another list item</li> </ul> </div> <footer> <p>Footer content</p> - <span id=item5 tabindex=-1>Item 5</span> + <span id=item5 tabindex=0>Item 5</span> </footer> </div> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/descendant-navigation/simple-descendant-test.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/descendant-navigation/simple-descendant-test.html @@ -13,9 +13,9 @@ <div id=root focusgroup="toolbar"> <button id=item1 tabindex=0>Item 1</button> <div> - <button id=item2 tabindex=-1>Item 2 (nested)</button> + <button id=item2 tabindex=0>Item 2 (nested)</button> </div> - <button id=item3 tabindex=-1>Item 3</button> + <button id=item3 tabindex=0>Item 3</button> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/descendant-navigation/various-element-types.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/descendant-navigation/various-element-types.html @@ -13,33 +13,33 @@ <div id=root focusgroup="toolbar"> <span id=item1 tabindex=0>Item 1</span> <div> - <span id=item2 tabindex=-1>Item 2 (nested)</span> + <span id=item2 tabindex=0>Item 2 (nested)</span> </div> <section> <div> - <span id=item3 tabindex=-1>Item 3 (in section)</span> + <span id=item3 tabindex=0>Item 3 (in section)</span> </div> </section> <article> - <span id=item4 tabindex=-1>Item 4 (in article)</span> + <span id=item4 tabindex=0>Item 4 (in article)</span> </article> <div> - <span id=item5 tabindex=-1>Item 5 (deeply nested)</span> + <span id=item5 tabindex=0>Item 5 (deeply nested)</span> </div> <nav> <div> - <span id=item6 tabindex=-1>Item 6 (in nav)</span> + <span id=item6 tabindex=0>Item 6 (in nav)</span> </div> </nav> <div> - <div tabindex=-1 id=item7>Item 7 (focusable div)</div> + <div tabindex=0 id=item7>Item 7 (focusable div)</div> </div> <details> - <summary id=item8 tabindex=-1>Item 8 (summary)</summary> + <summary id=item8 tabindex=0>Item 8 (summary)</summary> <p>Details content</p> </details> <div> - <span id=item9 tabindex=-1>Item 9 (final)</span> + <span id=item9 tabindex=0>Item 9 (final)</span> </div> </div> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/descendant-navigation/wrapping-with-descendants.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/descendant-navigation/wrapping-with-descendants.html @@ -17,13 +17,13 @@ <div class="middle-section"> <div> <div> - <button id=middle tabindex=-1>Middle Item (nested)</button> + <button id=middle tabindex=0>Middle Item (nested)</button> </div> </div> </div> <div class="last-section"> <span> - <button id=last tabindex=-1>Last Item</button> + <button id=last tabindex=0>Last Item</button> </span> </div> </div> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/forward-navigation/does-not-move-when-on-focusgroup-root.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/forward-navigation/does-not-move-when-on-focusgroup-root.html @@ -10,9 +10,9 @@ <script src="/resources/testdriver-actions.js"></script> <script src="../resources/focusgroup-utils.js"></script> -<div id=root tabindex=-1 focusgroup="toolbar"> +<div id=root tabindex=0 focusgroup="toolbar"> <span id=item1 tabindex=0>item1</span> - <span id=item2 tabindex=-1>item2</span> + <span id=item2 tabindex=0>item2</span> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/forward-navigation/does-not-move-when-on-non-item.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/forward-navigation/does-not-move-when-on-non-item.html @@ -13,9 +13,9 @@ <!-- Element outside focusgroup should not participate --> <span id=nonitem1 tabindex=0>nonitem1</span> -<div tabindex=-1 focusgroup="toolbar"> +<div tabindex=0 focusgroup="toolbar"> <span id=item1 tabindex=0>item1</span> - <span id=item2 tabindex=-1>item2</span> + <span id=item2 tabindex=0>item2</span> </div> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/forward-navigation/does-not-move-when-outside-focusgroup.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/forward-navigation/does-not-move-when-outside-focusgroup.html @@ -10,10 +10,10 @@ <script src="/resources/testdriver-actions.js"></script> <script src="../resources/focusgroup-utils.js"></script> -<span id=out tabindex=-1>out</span> +<span id=out tabindex=0>out</span> <div focusgroup="toolbar"> <span id=item1 tabindex=0>item1</span> - <span id=item2 tabindex=-1>item2</span> + <span id=item2 tabindex=0>item2</span> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/forward-navigation/does-not-wrap-when-not-supported.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/forward-navigation/does-not-wrap-when-not-supported.html @@ -12,7 +12,7 @@ <div id=root focusgroup="toolbar"> <span id=item1 tabindex=0>item1</span> - <span id=item2 tabindex=-1>item2</span> + <span id=item2 tabindex=0>item2</span> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/forward-navigation/horizontal/does-not-move-when-axis-not-supported.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/forward-navigation/horizontal/does-not-move-when-axis-not-supported.html @@ -12,7 +12,7 @@ <div id=root focusgroup="toolbar block"> <span id=item1 tabindex=0>item1</span> - <span id=item2 tabindex=-1>item2</span> + <span id=item2 tabindex=0>item2</span> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/forward-navigation/horizontal/moves-when-only-current-axis-supported.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/forward-navigation/horizontal/moves-when-only-current-axis-supported.html @@ -12,7 +12,7 @@ <div id=root focusgroup="toolbar inline"> <span id=item1 tabindex=0>item1</span> - <span id=item2 tabindex=-1>item2</span> + <span id=item2 tabindex=0>item2</span> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/forward-navigation/moves-to-next-item-and-skips-non-focusable.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/forward-navigation/moves-to-next-item-and-skips-non-focusable.html @@ -13,7 +13,7 @@ <div focusgroup="toolbar"> <span id=item1 tabindex=0>item1</span> <span id=item2>item2</span> <!--NOT FOCUSABLE--> - <span id=item3 tabindex=-1>item3</span> + <span id=item3 tabindex=0>item3</span> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/forward-navigation/moves-to-next-item.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/forward-navigation/moves-to-next-item.html @@ -12,7 +12,7 @@ <div focusgroup="toolbar"> <span id=item1 tabindex=0>item1</span> - <span id=item2 tabindex=-1>item2</span> + <span id=item2 tabindex=0>item2</span> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/forward-navigation/vertical/does-not-move-when-axis-not-supported.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/forward-navigation/vertical/does-not-move-when-axis-not-supported.html @@ -12,7 +12,7 @@ <div id=root focusgroup="toolbar inline"> <span id=item1 tabindex=0>item1</span> - <span id=item2 tabindex=-1>item2</span> + <span id=item2 tabindex=0>item2</span> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/forward-navigation/vertical/moves-when-only-current-axis-supported.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/forward-navigation/vertical/moves-when-only-current-axis-supported.html @@ -12,7 +12,7 @@ <div id=root focusgroup="toolbar block"> <span id=item1 tabindex=0>item1</span> - <span id=item2 tabindex=-1>item2</span> + <span id=item2 tabindex=0>item2</span> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/forward-navigation/wraps-successfully.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/forward-navigation/wraps-successfully.html @@ -12,7 +12,7 @@ <div id=root focusgroup="toolbar wrap"> <span id=item1 tabindex=0>item1</span> - <span id=item2 tabindex=-1>item2</span> + <span id=item2 tabindex=0>item2</span> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/col-flow-only.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/col-flow-only.html @@ -13,13 +13,13 @@ <table focusgroup="grid col-flow"> <tr> <td id=r1c1 tabindex=0>r1c1</td> - <td id=r1c2 tabindex=-1>r1c2</td> - <td id=r1c3 tabindex=-1>r1c3</td> + <td id=r1c2 tabindex=0>r1c2</td> + <td id=r1c3 tabindex=0>r1c3</td> </tr> <tr> - <td id=r2c1 tabindex=-1>r2c1</td> - <td id=r2c2 tabindex=-1>r2c2</td> - <td id=r2c3 tabindex=-1>r2c3</td> + <td id=r2c1 tabindex=0>r2c1</td> + <td id=r2c2 tabindex=0>r2c2</td> + <td id=r2c3 tabindex=0>r2c3</td> </tr> </table> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/col-wrap-and-row-flow.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/col-wrap-and-row-flow.html @@ -13,13 +13,13 @@ <table focusgroup="grid col-wrap row-flow"> <tr> <td id=r1c1 tabindex=0>r1c1</td> - <td id=r1c2 tabindex=-1>r1c2</td> - <td id=r1c3 tabindex=-1>r1c3</td> + <td id=r1c2 tabindex=0>r1c2</td> + <td id=r1c3 tabindex=0>r1c3</td> </tr> <tr> - <td id=r2c1 tabindex=-1>r2c1</td> - <td id=r2c2 tabindex=-1>r2c2</td> - <td id=r2c3 tabindex=-1>r2c3</td> + <td id=r2c1 tabindex=0>r2c1</td> + <td id=r2c2 tabindex=0>r2c2</td> + <td id=r2c3 tabindex=0>r2c3</td> </tr> </table> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/col-wrap-only.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/col-wrap-only.html @@ -13,13 +13,13 @@ <table focusgroup="grid col-wrap"> <tr> <td id=r1c1 tabindex=0>r1c1</td> - <td id=r1c2 tabindex=-1>r1c2</td> - <td id=r1c3 tabindex=-1>r1c3</td> + <td id=r1c2 tabindex=0>r1c2</td> + <td id=r1c3 tabindex=0>r1c3</td> </tr> <tr> - <td id=r2c1 tabindex=-1>r2c1</td> - <td id=r2c2 tabindex=-1>r2c2</td> - <td id=r2c3 tabindex=-1>r2c3</td> + <td id=r2c1 tabindex=0>r2c1</td> + <td id=r2c2 tabindex=0>r2c2</td> + <td id=r2c3 tabindex=0>r2c3</td> </tr> </table> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/colspan.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/colspan.html @@ -13,14 +13,14 @@ <table focusgroup="grid"> <tr> <td id=r1c1 tabindex=0>r1c1</td> - <td id=r1c2 tabindex=-1 colspan=2>r1c2</td> - <td id=r1c4 tabindex=-1>r1c4</td> + <td id=r1c2 tabindex=0 colspan=2>r1c2</td> + <td id=r1c4 tabindex=0>r1c4</td> </tr> <tr> - <td id=r2c1 tabindex=-1>r2c1</td> - <td id=r2c2 tabindex=-1>r2c2</td> - <td id=r2c3 tabindex=-1>r2c3</td> - <td id=r2c4 tabindex=-1>r2c4</td> + <td id=r2c1 tabindex=0>r2c1</td> + <td id=r2c2 tabindex=0>r2c2</td> + <td id=r2c3 tabindex=0>r2c3</td> + <td id=r2c4 tabindex=0>r2c4</td> </tr> </table> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/css-table-not-focusgroup.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/css-table-not-focusgroup.html @@ -13,11 +13,11 @@ <div style="display:table"> <div style="display:table-row"> <div id=r1c1 style="display:table-cell" tabindex=0>r1c1</div> - <div id=r1c2 style="display:table-cell" tabindex=-1>r1c2</div> + <div id=r1c2 style="display:table-cell" tabindex=0>r1c2</div> </div> <div style="display:table-row"> - <div id=r2c1 style="display:table-cell" tabindex=-1>r2c1</div> - <div id=r2c2 style="display:table-cell" tabindex=-1>r2c2</div> + <div id=r2c1 style="display:table-cell" tabindex=0>r2c1</div> + <div id=r2c2 style="display:table-cell" tabindex=0>r2c2</div> </div> </div> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/css-table.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/css-table.html @@ -13,11 +13,11 @@ <div style="display:table" focusgroup=grid> <div style="display:table-row"> <div id=r1c1 style="display:table-cell" tabindex=0>r1c1</div> - <div id=r1c2 style="display:table-cell" tabindex=-1>r1c2</div> + <div id=r1c2 style="display:table-cell" tabindex=0>r1c2</div> </div> <div style="display:table-row"> - <div id=r2c1 style="display:table-cell" tabindex=-1>r2c1</div> - <div id=r2c2 style="display:table-cell" tabindex=-1>r2c2</div> + <div id=r2c1 style="display:table-cell" tabindex=0>r2c1</div> + <div id=r2c2 style="display:table-cell" tabindex=0>r2c2</div> </div> </div> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/does-not-wrap-or-flow.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/does-not-wrap-or-flow.html @@ -13,13 +13,13 @@ <table focusgroup=grid> <tr> <td id=r1c1 tabindex=0>r1c1</td> - <td id=r1c2 tabindex=-1>r1c2</td> - <td id=r1c3 tabindex=-1>r1c3</td> + <td id=r1c2 tabindex=0>r1c2</td> + <td id=r1c3 tabindex=0>r1c3</td> </tr> <tr> - <td id=r2c1 tabindex=-1>r2c1</td> - <td id=r2c2 tabindex=-1>r2c2</td> - <td id=r2c3 tabindex=-1>r2c3</td> + <td id=r2c1 tabindex=0>r2c1</td> + <td id=r2c2 tabindex=0>r2c2</td> + <td id=r2c3 tabindex=0>r2c3</td> </tr> </table> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/empty-spaces.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/empty-spaces.html @@ -13,26 +13,26 @@ <table focusgroup="grid flow"> <tr> - <td id=r1c1 tabindex=-1 rowspan=2 colspan=2>r1c1</td> - <td id=r1c3 tabindex=-1>r1c3</td> - <td id=r1c4 tabindex=-1 rowspan=3>r1c4</td> - <td id=r1c5 tabindex=-1>r1c5</td> - <td id=r1c6 tabindex=-1>r1c6</td> - <td id=r1c7 tabindex=-1>r1c7</td> + <td id=r1c1 tabindex=0 rowspan=2 colspan=2>r1c1</td> + <td id=r1c3 tabindex=0>r1c3</td> + <td id=r1c4 tabindex=0 rowspan=3>r1c4</td> + <td id=r1c5 tabindex=0>r1c5</td> + <td id=r1c6 tabindex=0>r1c6</td> + <td id=r1c7 tabindex=0>r1c7</td> </tr> <tr> <!-- r2c1 and r2c2 starts in the previous row and spans to here. --> - <td id=r2c3 tabindex=-1>r2c3</td> + <td id=r2c3 tabindex=0>r2c3</td> <!-- Leave the rest of the row empty --> </tr> <tr> - <td id=r3c1 tabindex=-1>r3c1</td> - <td id=r3c2 tabindex=-1>r3c2</td> + <td id=r3c1 tabindex=0>r3c1</td> + <td id=r3c2 tabindex=0>r3c2</td> <!-- There will be a cell at r3c4, but it starts in row 1. --> </tr> <tr> - <td id=r4c1 tabindex=-1 colspan=5>r4c1</td> - <td id=r4c6 tabindex=-1>r4c6</td> + <td id=r4c1 tabindex=0 colspan=5>r4c1</td> + <td id=r4c6 tabindex=0>r4c6</td> <!-- No last cell - leave it empty for the test --> </tr> </table> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/flows-in-both-axes.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/flows-in-both-axes.html @@ -13,13 +13,13 @@ <table focusgroup="grid flow"> <tr> <td id=r1c1 tabindex=0>r1c1</td> - <td id=r1c2 tabindex=-1>r1c2</td> - <td id=r1c3 tabindex=-1>r1c3</td> + <td id=r1c2 tabindex=0>r1c2</td> + <td id=r1c3 tabindex=0>r1c3</td> </tr> <tr> - <td id=r2c1 tabindex=-1>r2c1</td> - <td id=r2c2 tabindex=-1>r2c2</td> - <td id=r2c3 tabindex=-1>r2c3</td> + <td id=r2c1 tabindex=0>r2c1</td> + <td id=r2c2 tabindex=0>r2c2</td> + <td id=r2c3 tabindex=0>r2c3</td> </tr> </table> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/moves-across-table-sections.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/moves-across-table-sections.html @@ -16,24 +16,24 @@ <td id=r1c1 tabindex=0>r1c1</td> </tr> <tr> - <td id=r2c1 tabindex=-1>r2c1</td> + <td id=r2c1 tabindex=0>r2c1</td> </tr> </thead> <tbody> <tr> - <td id=r3c1 tabindex=-1>r3c1</td> + <td id=r3c1 tabindex=0>r3c1</td> </tr> <tr> - <td id=r4c1 tabindex=-1>r4c1</td> + <td id=r4c1 tabindex=0>r4c1</td> </tr> </tbody> <tbody></tbody> <tfoot> <tr> - <td id=r5c1 tabindex=-1>r5c1</td> + <td id=r5c1 tabindex=0>r5c1</td> </tr> <tr> - <td id=r6c1 tabindex=-1>r6c1</td> + <td id=r6c1 tabindex=0>r6c1</td> </tr> </foot> </table> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/non-table.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/non-table.html @@ -12,7 +12,7 @@ <div focusgroup=grid> <span id=nonitem1 tabindex=0>nonitem1</span> - <span id=nonitem2 tabindex=-1>nonitem2</span> + <span id=nonitem2 tabindex=0>nonitem2</span> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/relayout-before-navigation.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/relayout-before-navigation.html @@ -19,10 +19,10 @@ <td id="item1" tabindex="0" onkeydown="removeMiddleRow()">item1</td> </tr> <tr id="middle-row"> - <td id="item2" tabindex="-1">item2</td> + <td id="item2" tabindex="0">item2</td> </tr> <tr> - <td id="item3" tabindex="-1">item3</td> + <td id="item3" tabindex="0">item3</td> </tr> </table> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/row-flow-only.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/row-flow-only.html @@ -13,13 +13,13 @@ <table focusgroup="grid row-flow"> <tr> <td id=r1c1 tabindex=0>r1c1</td> - <td id=r1c2 tabindex=-1>r1c2</td> - <td id=r1c3 tabindex=-1>r1c3</td> + <td id=r1c2 tabindex=0>r1c2</td> + <td id=r1c3 tabindex=0>r1c3</td> </tr> <tr> - <td id=r2c1 tabindex=-1>r2c1</td> - <td id=r2c2 tabindex=-1>r2c2</td> - <td id=r2c3 tabindex=-1>r2c3</td> + <td id=r2c1 tabindex=0>r2c1</td> + <td id=r2c2 tabindex=0>r2c2</td> + <td id=r2c3 tabindex=0>r2c3</td> </tr> </table> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/row-wrap-and-col-flow.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/row-wrap-and-col-flow.html @@ -13,13 +13,13 @@ <table focusgroup="grid row-wrap col-flow"> <tr> <td id=r1c1 tabindex=0>r1c1</td> - <td id=r1c2 tabindex=-1>r1c2</td> - <td id=r1c3 tabindex=-1>r1c3</td> + <td id=r1c2 tabindex=0>r1c2</td> + <td id=r1c3 tabindex=0>r1c3</td> </tr> <tr> - <td id=r2c1 tabindex=-1>r2c1</td> - <td id=r2c2 tabindex=-1>r2c2</td> - <td id=r2c3 tabindex=-1>r2c3</td> + <td id=r2c1 tabindex=0>r2c1</td> + <td id=r2c2 tabindex=0>r2c2</td> + <td id=r2c3 tabindex=0>r2c3</td> </tr> </table> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/row-wrap-only.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/row-wrap-only.html @@ -13,13 +13,13 @@ <table focusgroup="grid row-wrap"> <tr> <td id=r1c1 tabindex=0>r1c1</td> - <td id=r1c2 tabindex=-1>r1c2</td> - <td id=r1c3 tabindex=-1>r1c3</td> + <td id=r1c2 tabindex=0>r1c2</td> + <td id=r1c3 tabindex=0>r1c3</td> </tr> <tr> - <td id=r2c1 tabindex=-1>r2c1</td> - <td id=r2c2 tabindex=-1>r2c2</td> - <td id=r2c3 tabindex=-1>r2c3</td> + <td id=r2c1 tabindex=0>r2c1</td> + <td id=r2c2 tabindex=0>r2c2</td> + <td id=r2c3 tabindex=0>r2c3</td> </tr> </table> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/rowspan.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/rowspan.html @@ -12,27 +12,27 @@ <table focusgroup="grid"> <tr> - <td id=r1c1 tabindex=-1>r1c1</td> - <td id=r1c2 tabindex=-1>r1c2</td> - <td id=r1c3 tabindex=-1>r1c3</td> + <td id=r1c1 tabindex=0>r1c1</td> + <td id=r1c2 tabindex=0>r1c2</td> + <td id=r1c3 tabindex=0>r1c3</td> </tr> <tr> <td id=r2c1 tabindex=0>r2c1</td> - <td id=r2c2 tabindex=-1 rowspan=3>r2c2</td> - <td id=r2c3 tabindex=-1>r3c3</td> + <td id=r2c2 tabindex=0 rowspan=3>r2c2</td> + <td id=r2c3 tabindex=0>r3c3</td> </tr> <tr> - <td id=r3c1 tabindex=-1>r3c1</td> - <td id=r3c3 tabindex=-1>r3c3</td> + <td id=r3c1 tabindex=0>r3c1</td> + <td id=r3c3 tabindex=0>r3c3</td> </tr> <tr> - <td id=r4c1 tabindex=-1>r4c1</td> - <td id=r4c3 tabindex=-1>r4c3</td> + <td id=r4c1 tabindex=0>r4c1</td> + <td id=r4c3 tabindex=0>r4c3</td> </tr> <tr> - <td id=r5c1 tabindex=-1>r5c1</td> - <td id=r5c2 tabindex=-1>r5c2</td> - <td id=r5c3 tabindex=-1>r5c3</td> + <td id=r5c1 tabindex=0>r5c1</td> + <td id=r5c2 tabindex=0>r5c2</td> + <td id=r5c3 tabindex=0>r5c3</td> </tr> </table> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/simple-case-with-non-focusable-cell-in-the-center.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/simple-case-with-non-focusable-cell-in-the-center.html @@ -13,18 +13,18 @@ <table focusgroup=grid> <tr> <td id=r1c1 tabindex=0>r1c1</td> - <td id=r1c2 tabindex=-1>r1c2</td> - <td id=r1c3 tabindex=-1>r1c3</td> + <td id=r1c2 tabindex=0>r1c2</td> + <td id=r1c3 tabindex=0>r1c3</td> </tr> <tr> - <td id=r2c1 tabindex=-1>r2c1</td> + <td id=r2c1 tabindex=0>r2c1</td> <td id=r2c2>r2c2</td> - <td id=r2c3 tabindex=-1>r2c3</td> + <td id=r2c3 tabindex=0>r2c3</td> </tr> <tr> - <td id=r3c1 tabindex=-1>r3c1</td> - <td id=r3c2 tabindex=-1>r3c2</td> - <td id=r3c3 tabindex=-1>r3c3</td> + <td id=r3c1 tabindex=0>r3c1</td> + <td id=r3c2 tabindex=0>r3c2</td> + <td id=r3c3 tabindex=0>r3c3</td> </tr> </table> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/simple-case.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/simple-case.html @@ -13,13 +13,13 @@ <table focusgroup=grid> <tr> <td id=r1c1 tabindex=0>r1c1</td> - <td id=r1c2 tabindex=-1>r1c2</td> - <td id=r1c3 tabindex=-1>r1c3</td> + <td id=r1c2 tabindex=0>r1c2</td> + <td id=r1c3 tabindex=0>r1c3</td> </tr> <tr> - <td id=r2c1 tabindex=-1>r2c1</td> - <td id=r2c2 tabindex=-1>r2c2</td> - <td id=r2c3 tabindex=-1>r2c3</td> + <td id=r2c1 tabindex=0>r2c1</td> + <td id=r2c2 tabindex=0>r2c2</td> + <td id=r2c3 tabindex=0>r2c3</td> </tr> </table> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/wraps-in-both-axes.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/grid-navigation/wraps-in-both-axes.html @@ -13,13 +13,13 @@ <table focusgroup="grid wrap"> <tr> <td id=r1c1 tabindex=0>r1c1</td> - <td id=r1c2 tabindex=-1>r1c2</td> - <td id=r1c3 tabindex=-1>r1c3</td> + <td id=r1c2 tabindex=0>r1c2</td> + <td id=r1c3 tabindex=0>r1c3</td> </tr> <tr> - <td id=r2c1 tabindex=-1>r2c1</td> - <td id=r2c2 tabindex=-1>r2c2</td> - <td id=r2c3 tabindex=-1>r2c3</td> + <td id=r2c1 tabindex=0>r2c1</td> + <td id=r2c2 tabindex=0>r2c2</td> + <td id=r2c3 tabindex=0>r2c3</td> </tr> </table> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/opt-out-barriers/complex-nested-opt-out.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/opt-out-barriers/complex-nested-opt-out.html @@ -14,33 +14,33 @@ <button id=item1 tabindex=0>Item 1</button> <div> - <button id=item2 tabindex=-1>Item 2</button> + <button id=item2 tabindex=0>Item 2</button> <div id=optout1 focusgroup="none"> - <button id=optout_item1 tabindex=-1>Opted out 1</button> + <button id=optout_item1 tabindex=0>Opted out 1</button> <div> - <button id=optout_item2 tabindex=-1>Opted out 2 (nested)</button> + <button id=optout_item2 tabindex=0>Opted out 2 (nested)</button> <!-- Nested focusgroup within opt-out should function independently and not participate in ancestor group --> <div id=nested_in_optout focusgroup="menu"> - <button id=nested_optout_item1 tabindex=-1>Nested in opt-out 1</button> - <button id=nested_optout_item2 tabindex=-1>Nested in opt-out 2</button> + <button id=nested_optout_item1 tabindex=0>Nested in opt-out 1</button> + <button id=nested_optout_item2 tabindex=0>Nested in opt-out 2</button> </div> </div> <!-- Another opt-out within opt-out (redundant but valid) --> <div id=optout2 focusgroup="none"> - <button id=double_optout tabindex=-1>Double opt-out</button> + <button id=double_optout tabindex=0>Double opt-out</button> </div> </div> - <button id=item3 tabindex=-1>Item 3</button> + <button id=item3 tabindex=0>Item 3</button> </div> <div> <div> - <button id=item4 tabindex=-1>Item 4 (deeply nested)</button> + <button id=item4 tabindex=0>Item 4 (deeply nested)</button> </div> </div> </div> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/opt-out-barriers/none-creates-barriers.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/opt-out-barriers/none-creates-barriers.html @@ -12,17 +12,17 @@ <div id=root focusgroup="toolbar"> <button id=item1 tabindex=0>Item 1</button> - <button id=item2 tabindex=-1>Item 2</button> + <button id=item2 tabindex=0>Item 2</button> <div id=optout focusgroup="none"> - <button id=optout_item1 tabindex=-1>Opted out item 1</button> + <button id=optout_item1 tabindex=0>Opted out item 1</button> <div> - <button id=optout_item2 tabindex=-1>Opted out item 2</button> + <button id=optout_item2 tabindex=0>Opted out item 2</button> </div> </div> - <button id=item3 tabindex=-1>Item 3</button> - <button id=item4 tabindex=-1>Item 4</button> + <button id=item3 tabindex=0>Item 3</button> + <button id=item4 tabindex=0>Item 4</button> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/reading-flow-navigation/fallback-to-dom-order.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/reading-flow-navigation/fallback-to-dom-order.html @@ -12,8 +12,8 @@ <div focusgroup="toolbar"> <span id=item1 tabindex=0>item1</span> - <span id=item2 tabindex=-1>item2</span> - <span id=item3 tabindex=-1>item3</span> + <span id=item2 tabindex=0>item2</span> + <span id=item3 tabindex=0>item3</span> </div> <script> diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/shadow/shadow-items-basic.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/shadow/shadow-items-basic.html @@ -29,8 +29,8 @@ const sr = host.attachShadow({mode: 'open'}); sr.innerHTML = ` <button id=item1 tabindex=0>One</button> - <button id=item2 tabindex=-1>Two</button> - <button id=item3 tabindex=-1>Three</button>`; + <button id=item2 tabindex=0>Two</button> + <button id=item3 tabindex=0>Three</button>`; const item1 = sr.getElementById('item1'); const item2 = sr.getElementById('item2'); const item3 = sr.getElementById('item3'); diff --git a/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/shadow/shadow-nested-scope.html b/testing/web-platform/tests/html/interaction/focus/focusgroup/tentative/shadow/shadow-nested-scope.html @@ -13,7 +13,7 @@ <div id=outer_fg focusgroup="toolbar inline"> <button id=outer1 tabindex=0>Outer 1</button> <div id=shadow_host></div> - <button id=outer2 tabindex=-1>Outer 2</button> + <button id=outer2 tabindex=0>Outer 2</button> </div> <script> @@ -30,7 +30,7 @@ sr.innerHTML = ` <div id=inner_fg focusgroup="menu inline"> <button id=inner1 tabindex=0>Inner 1</button> - <button id=inner2 tabindex=-1>Inner 2</button> + <button id=inner2 tabindex=0>Inner 2</button> </div>`; const outer1 = document.getElementById('outer1'); const outer2 = document.getElementById('outer2');