Closed Bug 1649837 Opened 6 years ago Closed 3 years ago

pageYOffset and viewport height styling issues

Categories

(Firefox for Android :: Toolbar, defect)

All
Android
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jonohewitt, Unassigned)

References

Details

Attachments

(1 file)

Attached image topbottom.png —

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Firefox/78.0

Steps to reproduce:

Visit example site: https://jonohewitt.github.io/pixel-scroller/ with Firefox Nightly 200630 06:01, version 79.0a1

Scroll down the page and back up.

Actual results:

window.pageYOffset is giving values >1 when scrolling back to the very top of the page. Maybe related to the very thin white line at the top of the window that appears immediately on scroll?

Also, if you scroll down to the bottom of the page, the 100vh CSS styling for the bottom pink section is not taking up the whole window height. It has a section of blue at the top.

Expected results:

window.pageYOffset should be giving a 0 value when scrolled back to the very top.

The bottom section should fill the window with pink.

Component: General → Panning and Zooming
OS: Unspecified → Android
Product: Firefox for Android → Core
Version: Firefox 79 → 79 Branch

Can reproduce on Reference Browser. Cannot reproduce on Geckoview Sample browser so this is an Android components bug. Opened https://github.com/mozilla-mobile/android-components/issues/7585

Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → MOVED
Severity: -- → S3
Status: RESOLVED → REOPENED
Component: Panning and Zooming → Toolbar
Ever confirmed: true
Product: Core → Fenix
Hardware: Unspecified → All
Resolution: MOVED → ---
Version: 79 Branch → Trunk
Status: REOPENED → NEW
Duplicate of this bug: 1796302

Looks to be works for me on v110 and nightly v112.

Status: NEW → RESOLVED
Closed: 6 years ago → 3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: