Bug 186622

Summary: documentElement clientHeight does not include safe-area
Product: WebKit Reporter: Darryl Pogue <dvpdiner2>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: bdakin, bfulgham, jonlee, simon.fraser, thorton, zalan
Priority: P2    
Version: Safari 11   
Hardware: Unspecified   
OS: iOS 11   

Darryl Pogue
Reported 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.
Attachments
Note You need to log in before you can comment on or make changes to this bug.