pageYOffset and viewport height styling issues
Categories
(Firefox for Android :: Toolbar, defect)
Tracking
()
People
(Reporter: jonohewitt, Unassigned)
References
Details
Attachments
(1 file)
|
625.05 KB,
image/png
|
Details |
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.
Updated•6 years ago
|
Comment 1•6 years ago
|
||
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
Updated•3 years ago
|
Updated•3 years ago
|
Comment 3•3 years ago
|
||
Looks to be works for me on v110 and nightly v112.
Description
•