Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix shadow-dom/focus-navigation/focus-navigation-web-component-input-type-radio.html for Safari #38410

Conversation

rniwa
Copy link
Contributor

@rniwa rniwa commented Feb 8, 2023

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.

@@ -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>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test name should be changed, input-type-radio is no longer accurate.

Though I wonder if there's any point to this test now that we're changing it to a span? Will leave it to your judgement :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, that's a good point. I'd rename it to focus-navigation-web-component-radio.html

…type-radio.html for Safari

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.
@rniwa rniwa force-pushed the fix-focus-navigation-web-component-input-type-radio.html branch from 5060f34 to b348cd4 Compare February 8, 2023 06:27
@rniwa rniwa merged commit f09a6bf into web-platform-tests:master Feb 8, 2023
@rniwa rniwa deleted the fix-focus-navigation-web-component-input-type-radio.html branch February 8, 2023 07:23
marcoscaceres pushed a commit that referenced this pull request Mar 28, 2023
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants