WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
181741
Element with position:fixed stops scrolling at the bottom of the page, but is painted in the right place on Chacos.com.
https://bugs.webkit.org/show_bug.cgi?id=181741
Summary
Element with position:fixed stops scrolling at the bottom of the page, but is...
Stephanie Poll
Reported
2018-01-17 07:01:59 PST
Created
attachment 331492
[details]
A screenshot of what happens when hovering over the element in the safari web inspector. If you scroll to the very bottom of the URL on an iPhone, the fixed top/chat buttons on the side stop moving down with the page, but continue to be painted in the correct place. This happens about 40 pixels from the actual bottom. This causes the click area to be shoved above where the elements appear to be. While scrolling, the element is in the correct position, but after scrolling stops, the element will jump above where it appears to be painted. For visual reference, please see the attached screenshot or watch the video at this link:
https://www.screencast.com/t/dDzlXxSIZ
Attachments
A screenshot of what happens when hovering over the element in the safari web inspector.
(76.24 KB, image/png)
2018-01-17 07:01 PST
,
Stephanie Poll
no flags
Details
Reduction
(536 bytes, text/html)
2018-01-17 16:06 PST
,
Simon Fraser (smfr)
no flags
Details
Patch
(8.38 KB, patch)
2018-01-22 13:00 PST
,
Simon Fraser (smfr)
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Simon Fraser (smfr)
Comment 1
2018-01-17 12:54:07 PST
I can reproduce.
Radar WebKit Bug Importer
Comment 2
2018-01-17 12:54:28 PST
<
rdar://problem/36593581
>
Simon Fraser (smfr)
Comment 3
2018-01-17 16:06:53 PST
Created
attachment 331553
[details]
Reduction Seems to happen on pages that have a viewport meta tag that triggers scaling. I'm surprised this is such a basic failure :(
Simon Fraser (smfr)
Comment 4
2018-01-17 18:46:19 PST
So this issue happens when the minimum scale is > 1. FrameView::visualViewportRect() returns a visual viewport that's too big (larger than the document) because it assumes that it can scale the visible rect by the scale (~1.3 on this page).
Simon Fraser (smfr)
Comment 5
2018-01-17 19:04:41 PST
The iOS-only code in FrameView::unscaledMaximumScrollPosition() looks suspicious.
Simon Fraser (smfr)
Comment 6
2018-01-17 19:05:42 PST
Bug 174648
is relevant.
Simon Fraser (smfr)
Comment 7
2018-01-22 13:00:58 PST
Created
attachment 331953
[details]
Patch
WebKit Commit Bot
Comment 8
2018-01-23 12:11:15 PST
Comment on
attachment 331953
[details]
Patch Clearing flags on attachment: 331953 Committed
r227430
: <
https://trac.webkit.org/changeset/227430
>
WebKit Commit Bot
Comment 9
2018-01-23 12:11:17 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug