Skip to content

Element with visibility: hidden being focusable #41312

@stevennovaryo

Description

@stevennovaryo

Describe the bug:
Element with visibility: hidden is focusable (e.g. with JS API, or does not respond to focus fix up rule).

To Reproduce:

<button style="visibility: hidden;" id="target">
</button>
<script>
    target.addEventListener('focus', (event) => {
        console.log('focus event:', event);
    });
    target.focus();
</script>

Platform:
Not specific to any platform.

Metadata

Metadata

Assignees

Labels

A-content/cssInteracting with CSS from web content (parsing, serializing, introspection)A-content/domInteracting with the DOM from web contentC-assignedThere is someone working on resolving the issueC-has-manual-testcase

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions