Closed Bug 1865667 Opened 7 months ago Closed 4 months ago

Input focus triggers page scroll

Categories

(Core :: Layout: Scrolling and Overflow, defect)

Firefox 119
defect

Tracking

()

RESOLVED DUPLICATE of bug 1858984

People

(Reporter: mail, Unassigned)

References

(Regression)

Details

(Keywords: regression)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/119.0

Steps to reproduce:

  1. Open this gist:
    https://gistpreview.github.io/?0b031ea78c629bc5df46ac02b8199bf7
    https://gist.github.com/FeBe95/0b031ea78c629bc5df46ac02b8199bf7

  2. Scroll to the end of the page

  3. Focus first input

  4. Press Shift + Tab ⭾

Actual results:

Page scrolls up a bit

Expected results:

Page should not scroll at all

The bug is mainly caused by a very small CSS 'scale' value in combination with the input being positioned near the top. You can play around with the scale value of the input and the padding value of the navbar.

A real-world example has 'scale(0)' on a hidden input element, which is used for a select box in the frontend.

mozregression result:
https://phabricator.services.mozilla.com/D182930

Component: Untriaged → Layout: Scrolling and Overflow
Keywords: regression
Product: Firefox → Core
Regressed by: 1818126

:dlrobertson, since you are the author of the regressor, bug 1818126, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(drobertson)

Thanks for reporting this! The underlying cause seems to be the same issue as bug 1858984. I confirmed that the STR could reproduce the issue on nightly and then confirmed that the issue is fixed in my local build that contains the patches attached to bug 1858984.

Flags: needinfo?(drobertson)

The severity field is not set for this bug.
:hiro, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(hikezoe.birchill)

I'd wait for landing bug 1858984.

Looks like bug 1858984 is now fixed (in Firefox 123, which was released a few days ago).

Felix, could you confirm that the issue is resolved for you in Firefox 123?

Flags: needinfo?(hikezoe.birchill) → needinfo?(mail)

Yes, I can confirm that this issue is now fixed in all of my test cases!

Flags: needinfo?(mail)
Status: UNCONFIRMED → RESOLVED
Closed: 4 months ago
Duplicate of bug: 1858984
Resolution: --- → DUPLICATE

(In reply to Felix Bernhard from comment #6)

Yes, I can confirm that this issue is now fixed in all of my test cases!

Thanks for verifying this!

You need to log in before you can comment on or make changes to this bug.