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

scrollable-region-focusable should consider an element's content real content, not its content box #4535

Open
WilcoFiers opened this issue Jul 10, 2024 · 0 comments
Labels
fix Bug fixes rules Issue or false result from an axe-core rule support
Milestone

Comments

@WilcoFiers
Copy link
Contributor

The following shouldn't fail the scrollable-region-focusable rule:

<style>
  #container {
    width: 300px;
    background: #aff;
    overflow-y: auto;
  }
  p {
    width: 600px;
  }
</style>
<div id="container">
  <p>Contents</p>
</div>

The text in this paragraph is fully visible. Axe-core is failing this because its detecting a p element who's content box ix much larger than it scrollable parent. Axe shouldn't use the content box here though, it should use the actual size and position of the element's content.

@WilcoFiers WilcoFiers added fix Bug fixes rules Issue or false result from an axe-core rule support labels Jul 10, 2024
@WilcoFiers WilcoFiers added this to the Axe-core 4.11 milestone Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fixes rules Issue or false result from an axe-core rule support
Projects
None yet
Development

No branches or pull requests

1 participant