Closed Bug 1618018 Opened 5 years ago Closed 5 years ago

svg <a> element does not scroll into view when receiving focus

Categories

(Core :: SVG, defect)

73 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1589164

People

(Reporter: will.delphia, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

Attached file svg-focus-bug.html (deleted) —

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.100 Safari/537.36

Steps to reproduce:

Open attached file in firefox in windows 10. Make sure that the browser widow is significantly narrower than width of the inline SVG (4000px wide). Attempt to navigate through the tabbable elements on the page. These are <a> tags contained by the <svg> tag, which is allowed according to https://developer.mozilla.org/en-US/docs/Web/SVG/Element/a . Hit the tab key on your keyboard multiple times, bringing each of the <a> tags into focus.
Then use the browsers scroll bar to move the scroll of the window over to the left some.
Hit the tab button again.

Actual results:

When the tab button is hit, instead of moving the <a> tag into view, the scroll position of the window is set to X = 0. This will happen regardless of if the newly focused element is on or off screen at the time.

Expected results:

The scroll position of the page should be adjusted to make a given <a> tag visible to the user each time it receives focus.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
Has STR: --- → yes
Component: Untriaged → SVG
Keywords: testcase
Product: Firefox → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: