Bug 213752 - WKWebView does not set safe-area-inset-* values with Mac Catalyst
Summary: WKWebView does not set safe-area-inset-* values with Mac Catalyst
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari Technology Preview
Hardware: Mac macOS 10.15
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-06-29 13:39 PDT by Liam DeBeasi
Modified: 2022-06-30 16:27 PDT (History)
2 users (show)

See Also:


Attachments
Example application for bug reproduction (59.15 KB, application/zip)
2020-06-29 13:39 PDT, Liam DeBeasi
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Liam DeBeasi 2020-06-29 13:39:28 PDT
Created attachment 403107 [details]
Example application for bug reproduction

WKWebView does not set the safe-area-inset-* values when running an application using Mac Catalyst.

Steps to reproduce:

1. Open attached project in Xcode.
2. Run app on Mac.
3. When the app loads, attempt to scroll down. You should notice that some text scrolls down from under the toolbar.
4. In Safari Web Inspector, inspect the "--safe-area-top" CSS Variable on the body. You should notice that it is set to "0px".

I would expect that the safe-area-inset-top value is set to a value such that the text in the example app is not hidden under the toolbar. The safe-area-inset-* values are set properly when running this same app on an iOS device.
Comment 1 Radar WebKit Bug Importer 2022-06-30 16:27:03 PDT
<rdar://problem/96253869>