Bug 232325 - The Smart App Banner breaks CSS for full-viewport web apps
Summary: The Smart App Banner breaks CSS for full-viewport web apps
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: Safari 15
Hardware: iPhone / iPad Other
: P1 Blocker
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-10-26 12:14 PDT by Chris Rocco
Modified: 2021-10-27 13:52 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Rocco 2021-10-26 12:14:02 PDT
# Description of the problem:

* I have a web application that spans the full height of the viewport. 
* It needs to know the exact height of the viewport because it is a scrolling carousel of images.
* Because the bottom nav collapses, the viewport is resized during scrolling, breaking the UI.
* It is possible to prevent the bottom nav from collapses by setting `overflow: hidden` on the body tag, forcing a fixed viewport size.
* When the smart app banner is present, however, the bottom nav will still collapse.


# Repro Steps:

* Use a web page with the styles `body { overflow: hidden }` and enough content in the body so that is scrolls
* Verify that scrolling within the body does not cause the bottom nav to collapse
* Now open the web page with a smart app banner showing
* The bottom nav collapses and the viewport is resized
Comment 1 Radar WebKit Bug Importer 2021-10-26 17:25:08 PDT
<rdar://problem/84688427>