Skip to content

Commit

Permalink
Bug 1815635 [wpt PR 38410] - Fix shadow-dom/focus-navigation/focus-na…
Browse files Browse the repository at this point in the history
…vigation-web-component-input-type-radio.html for Safari, a=testonly

Automatic update from web-platform-tests
Fix shadow-dom/focus-navigation/focus-navigation-web-component-input-type-radio.html for Safari (#38410)

This test was erroneously assuming that radio buttons are focusable.
Use a span with ARIA role=radio and tabindex=0 instead as this is not the case in Safari.

Also rename the test accordingly.
--

wpt-commits: f09a6bf875d3115d3363ffe707ce3224ecaa9a36
wpt-pr: 38410
  • Loading branch information
rniwa authored and moz-wptsync-bot committed Feb 20, 2023
1 parent f34d88c commit fc0be0d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<script src="resources/focus-utils.js"></script>

<template id="custom-radio">
<input type="radio">
<span aria-role="radio" tabindex="0">&#x1F518;</span>
<slot></slot>
</template>

Expand Down

0 comments on commit fc0be0d

Please sign in to comment.