svg <a> element does not scroll into view when receiving focus
Categories
(Core :: SVG, defect)
Tracking
()
People
(Reporter: will.delphia, Unassigned)
Details
(Keywords: testcase)
Attachments
(1 file)
(deleted),
text/html
|
Details |
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.
Updated•5 years ago
|
Updated•5 years ago
|
Description
•