Skip to content

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

Open
@yuheiy

Description

@yuheiy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions