I find that if I use WKWebView with
viewport-fit=cover
and
body :{height:100%}
the height of html body still can not reach the bottom of iPhone X and is equal to the height of safeArea, However, the background-color can cover the fullscreen.
https://ue.qzone.qq.com/touch/proj-qzone-app/test.html
I load this page in a fullscreen WKWebView to reproduce the problem.
safe-area-inset-top
correspond to the status bar height. Thus you get a 20px gap at the bottom on any iOS 11 device. This was not an issue in iOS 10. – Gerboldviewport-fit=cover
before computing the html/body heights or something. – Gerbold