Skip to content

[html-aam] Tests needed for svg > title when placed inside interactive elements #52459

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

Open
yuheiy opened this issue May 11, 2025 · 2 comments
Open

Comments

@yuheiy
Copy link

yuheiy commented May 11, 2025

We need tests for cases where svg > title is placed within interactive elements.

According to the specification, when an svg element with a title element is placed within an interactive element, the content of the title element should become the Accessible Name of the interactive element. However, this is not working correctly in Safari.

Here are examples demonstrating the issue:

<p>Inside an <code>a</code> element:</p>

<a href="#">
  <svg width="50" height="50">
    <title>red square</title>
    <rect width="50" height="50" fill="#cc0000" />
  </svg>
</a>

<p>Inside a <code>button</code> element:</p>

<button type="button">
  <svg width="50" height="50">
    <title>red square</title>
    <rect width="50" height="50" fill="#cc0000" />
  </svg>
</button>

Can someone help create a pull request with appropriate test cases for the html-aam specification to cover these scenarios? The tests should verify that the title element's content becomes the accessible name of the parent interactive element.

cc @cookiecrook @scottaohara @sideshowbarker

@cookiecrook
Copy link
Contributor

@cookiecrook
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants