object focus ring only in firefox, cannot be disabled while keeping internal svg anchor tabstops
Categories
(Core :: SVG, defect)
Tracking
()
People
(Reporter: eyalgruss, Unassigned)
Details
Attachments
(2 files)
i have an <object> element with external svg. the svg contains <a> elements.
in firefox as opposed to chromium the object gets a focus ring when tabbing by default.
when i try to remove this by setting tabindex="-1" on the object, the internal <a> lose their default tabstops.
see here: https://oulipoh.com/resen/seasons
Comment 1•2 years ago
|
||
Can't you use https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible to set the outline to something that doesn't display?
| Reporter | ||
Comment 2•2 years ago
|
||
i guess that would be a worse ux, as you still get the tab stop, but without any indication where the focus is
Comment 3•2 years ago
|
||
I'm really unclear as to what the problem you're reporting is then. Can you create a really really simple testcase please?
| Reporter | ||
Comment 4•2 years ago
|
||
i am reporting the issue that you cannot both disable the object focus ring and have the internal anchors as tab stops. the url given shows the focus ring. if you add tabindex="-1" on the object you will lose the anchor tab stops.
Comment 5•2 years ago
|
||
I explained how to disable the object focus ring and you said that wasn't what you wanted. Hence I don't know what you want.
Comment 6•2 years ago
|
||
What would help (I think) is a much simpler i.e. minimal testcase (say 10 lines for the SVG and another 10 for the host HTML file), together with steps to demonstrate the issue i.e. press tab <z> times and see <x>, I want to see <y> instead.
| Reporter | ||
Comment 7•2 years ago
|
||
sure!
demo: https://eyalgruss.com/share/bug1885742.html
code:
bug1885742.html
<!DOCTYPE html>
<html lang="en">
<body>
<h2>A tab-able object with tab-able anchors:</h2>
<object data="bug1885742.svg"></object>
<h2>A non-tab-able object with non-tab-able anchors:</h2>
<object tabindex="-1" data="bug1885742.svg"></object>
</body>
</html>
bug1885742.svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 100">
<a href="#"><text x="10" y="30">try to tab to me!</text></a>
</svg>
Comment 8•2 years ago
|
||
Comment 9•2 years ago
|
||
Comment 10•2 years ago
|
||
I can reproduce in builds from a month or so ago, but not in current Nightly -- current Nightly matches Chrome and never draws a focus outline around the object.
mozregression suggests this was fixed by bug 1483828.
Comment 11•2 years ago
|
||
specifically, mozregression --find-fix gives me this fix range:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=76ecc1dcf99e6c785d16b43c9a2360ce12d5a7af&tochange=d55219e38fc3cc901a0d7eb534e69383276bb7be
Updated•2 years ago
|
Description
•