Consider changing the default `:focus-visible` outline from `1px dotted` to `auto` [was: New wpt failures in /css/selectors/focus-visible-017.html]
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
People
(Reporter: mozilla.org, Unassigned)
References
Details
(Whiteboard: [wpt])
Syncing wpt PR 27015 found new untriaged test failures in CI
Tests Affected
New Tests That Don't Pass
/css/selectors/focus-visible-017.html
By default initial programatic focus matches ':focus-visible', so the element shows a focus ring with 'outline-style: auto': FAIL (Chrome: PASS, Safari: FAIL)
CI Results
Gecko CI (Treeherder)
GitHub PR Head
Notes
These updates will be on mozilla-central once bug 1684366 lands.
Note: this bug is for tracking fixing the issues and is not
owned by the wpt sync bot.
This bug is linked to the relevant tests by an annotation in
https://github.com/web-platform-tests/wpt-metadata. These annotations
can be edited using the wpt interop dashboard
https://jgraham.github.io/wptdash/
If this bug is split into multiple bugs, please also update the
annotations, otherwise we are unable to track which wpt issues are
already triaged. Resolving as duplicate or closing this issue should
be cause the bot to automatically update or remove the annotation.
Comment 1•4 years ago
|
||
This fails because the default UA style sheet uses "dotted" instead of "auto":
https://searchfox.org/mozilla-central/rev/a0ccd492719b1ad2106f6456549be62a76f45acb/layout/style/res/html.css#704-716
Comment 2•4 years ago
|
||
Changing this to auto
(it's now moved to ua.css, fwiw) would be a significant visual change in some cases.
On macOS, at least, the result would be more similar to what I see in Safari and Chrome (though whether that's desirable could be up for debate). I haven't looked into the effect on other platforms at this point.
Comment 3•2 years ago
|
||
(In reply to Jonathan Kew (:jfkthame) from comment #2)
Changing this to
auto
(it's now moved to ua.css, fwiw) would be a significant visual change in some cases.
Looks like we made this change (to auto
) in bug 1759602, and we were able to remove the failure annotation for this test in that bug's commit:
https://hg.mozilla.org/mozilla-central/rev/657571013f20bfb5942ed5293118c4226de12aef#l5.2
Description
•