Bug 186622 - documentElement clientHeight does not include safe-area
Summary: documentElement clientHeight does not include safe-area
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: Safari 11
Hardware: Unspecified iOS 11
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-14 10:08 PDT by Darryl Pogue
Modified: 2018-06-14 10:23 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 Darryl Pogue 2018-06-14 10:08:24 PDT
On an iPhone X running iOS 11.4 with a full-screen WKWebView and viewport-fit=cover, `document.documentElement.clientHeight` returns 734.
The actual screen height (as reported by `screen.availHeight`) is 812.

If viewport-fit=cover is specified, I would expect the clientHeight to be the full height of the screen, without subtracting the safe-area insets (since they are not being applied due to the viewport directive).

This is also occurring in iOS 12.0 beta 1.