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

inconsistent input label :active and :hover behavior #10549

Open
valler opened this issue Aug 5, 2024 · 1 comment
Open

inconsistent input label :active and :hover behavior #10549

valler opened this issue Aug 5, 2024 · 1 comment

Comments

@valler
Copy link

valler commented Aug 5, 2024

What is the issue with the HTML Standard?

I observed the following behavior in at least one browser on a labeled checkbox:

As expected directly clicking on the labeled element will always trigger :active styles.

Clicking a label with a pointer triggers :active styles on the labeled element, but only if the labeled element is not focused.

For comparison: hovering over labels does not depend on whether the labeled element is focused or not.

Is this intended and speced? Feels buggy and inconsistent.

I came across #6635, #1632 and while somewhat related these don't seem to answer this question.

@joonashalinen
Copy link

On Chromium this is a bug that is currently being fixed. It's the underlying cause of the following issue: https://issues.chromium.org/issues/40934455. The bug isn't present on Safari or Firefox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants