Bug 244381
Summary: | [iOS] Scrolling artifacts using fixed divs and lvh units | ||
---|---|---|---|
Product: | WebKit | Reporter: | Jon Lee <jonlee554> |
Component: | Scrolling | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | hi, simon.fraser, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | https://greermuldowney.com/ |
Jon Lee
iOS 15.6.1, scroll the home page https://greermuldowney.com
there is this markup:
<div id="background" style="background-image:...; position: fixed; width: 100%; height: 100lvh; top: 0; left: 0;"></div>
<div id="overlay" style="-webkit-backdrop-blur:...; position: fixed; width: 100%; height: 100lvh; top: 0; left: 0;"></div>
[I currently use backdrop blur because blurring the background image directly creates a halo around the viewport. Even with this solution I still see a halo on the bottom edge in iOS Safari.]
Scroll down. While in momentum, the bottom chunk is white, and then at some point the rest of the image comes in. Fingers down scrolling, I see the image filling out the viewport dynamically initially.
I see similar behavior in both Tab Bar and Single Tab modes.
With layer borders on it seems like the div is not sized to "100lvh" but is sized more like "100dvh". I would have expected lvh to not change between the two bar states.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/99477149>