Open
Bug 1787421
Opened 3 years ago
Updated 1 year ago
Scroll behaviour is not respected when scrolling to invalid form element on form submission
Categories
(Core :: Layout: Scrolling and Overflow, defect, P3)
Tracking
()
People
(Reporter: mark.j.fisher, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:104.0) Gecko/20100101 Firefox/104.0
Steps to reproduce:
See demo at https://codepen.io/markfisher/pen/qBoGJRa
Submitted an invalid form where the first invalid element was not in view, and the page had html, body {scroll-behavior: smooth}
Actual results:
The first invalid element was scrolled to immediately.
Expected results:
The scroll should have been smooth, as would have happened when using HTMLElement.scrollIntoView() with no options.
A sudden jump like this is disorienting for the user and gives no indication of the direction of movement.
Comment 1•3 years ago
|
||
Managed to reproduce the issue on macOS 11.6, Windows 11 x64 and on Ubuntu 20.04.
Severity: -- → S4
Status: UNCONFIRMED → NEW
Has STR: --- → yes
status-firefox104:
--- → affected
status-firefox105:
--- → affected
status-firefox106:
--- → affected
status-firefox-esr91:
--- → affected
Component: Untriaged → Layout: Scrolling and Overflow
Ever confirmed: true
OS: Unspecified → All
Product: Firefox → Core
Hardware: Unspecified → Desktop
Version: Firefox 104 → Firefox 106
Updated•1 year ago
|
Priority: -- → P3
You need to log in
before you can comment on or make changes to this bug.
Description
•