Skip to content

scrollable-region-focusable: false positive for disabled multiline select / listbox #3692

@MichaelKetting

Description

@MichaelKetting

Product

axe-core

Product Version

3.3.4 ... 4.4.2

Latest Version

  • I have tested the issue with the latest version of the product

Issue Description

Expectation

scrollable-region-focusable should not report for multiline select elements / listbox (when they are diabled)

Actual

I have a disabled select element showing a scrollbar because it contains more items than than it has rows configured and I get scrollable-region-focusable in my aXe result.

How to Reproduce

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
  <select size="2" name="select" disabled="disabled" aria-label="Test">
    <option value="First">First</option>
    <option value="Second">Second</option>
    <option value="Third">Third</option>
  </select>
</body>
</html>

Additional context

Since the browser does not allow focusing the element, it is not within the web-developer's scope to solve this issue for disabled elements.

see also #3691

Metadata

Metadata

Assignees

Labels

fixBug fixesprA pr has been created for the issuerulesIssue or false result from an axe-core rule

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions