Skip to content

scrollable-region-focusable: false positive for disabled textarea #3691

@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 textareas (when they are diabled)

Actual

I have a disabled textarea element showing a scrollbar because it contains more text than it has vertical space 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>
  <textarea name="textarea" rows="2" cols="20"  disabled="disabled" aria-label="Test">
      test
      test
      test
  </textarea>
</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 #3692

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