Commit 49a7120
Fix focus ring for anchor elements (#57845)
Anchor elements have special behavior to prevent a focus ring from being
rendered when the last user focus was done via keyboard and it was then
focused via script, which was (probably) added here: https://issues.chromium.org/issues/40383506
This inconsistency with other keyboard focusable elements is not a good
thing, and I don't agree with the justification from the bug report
which added the inconsistency, so this patch removes the special
behavior by removing HTMLAnchorElementBase::ShouldHaveFocusAppearance.
Fixed: 40848191
Bug: 40383506, 40911863
Change-Id: Ifa80ca5596c4eec4a4ddd31338525668a77137d1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6354078
Reviewed-by: David Baron <dbaron@chromium.org>
Reviewed-by: Joey Arhar <jarhar@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1586082}
Co-authored-by: Joey Arhar <jarhar@chromium.org>1 parent cf7b570 commit 49a7120
2 files changed
Lines changed: 37 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
0 commit comments