Bug 232237

Summary: Safari smart app banner increases safe bottom offset
Product: WebKit Reporter: Egor Smirnov <e.smirnov>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED MOVED    
Severity: Normal CC: bfulgham, simon.fraser, sriramkrish85, thorton, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=232325
Attachments:
Description Flags
bug reproducing none

Description Egor Smirnov 2021-10-25 06:33:42 PDT
Created attachment 442364 [details]
bug reproducing

We have the bottom tabs bar on our website which is fixed positioned at the bottom. When the user starts scrolling to the top, safari bottom bar and smart app banner start appearing, but the safe bottom offsets are calculating wrong.
On the attached videos you can see debug boxes where yellow is marks "position: fixed" behavior. When I enable the "Safe area margin" checkbox, it would add safe bottom offset to the margin. I've recorded both top and bottom bar positions which were introduced in iOS 15.
https://m.vk.com/?act=_apple_viewport_bug
Comment 1 Radar WebKit Bug Importer 2021-10-26 19:43:36 PDT
<rdar://problem/84692042>
Comment 2 Brent Fulgham 2022-02-10 10:08:34 PST
The fix for this issue was needed outside the WebKit project, therefore this is being resolved as 'Moved'.

This issue should be fixed now in iOS 15.4 Beta.