As per this official article on Chrome web, the proper way to set the height to fill the visible viewport is with height: 100%
, either on the <html>
element or on a position: fixed
element. As the document describes, this ensures compatibility with mobile Safari and is independent of how large the URL bar is.