<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>143305</bug_id>
          
          <creation_ts>2015-04-01 06:57:56 -0700</creation_ts>
          <short_desc>Viewport relative vh unit needs to update values based upon dynamic tab/address chrome</short_desc>
          <delta_ts>2022-07-19 07:09:10 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 8.2</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ben Frain">contact</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>gsnedders</cc>
    
    <cc>jensimmons</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1081990</commentid>
    <comment_count>0</comment_count>
    <who name="Ben Frain">contact</who>
    <bug_when>2015-04-01 06:57:56 -0700</bug_when>
    <thetext>The vh unit specifies one proportion of the viewport height. Therefore 100vh should be the entire viewport height. A problem occurs in Safari due to the dynamic tab/address bar that resizes on scroll (and consequently means the viewport height changes). In previous implementations of iOS the minimal-ui meta tag allowed a consistent viewport but the current version (8.2 at time of filing) has deprecated this tag.

This problem manifests when scrolling panels are created by creating container divs with a viewport height of 100vh. The scrolling panels don&apos;t get the vh value updated when the address bar chrome resizes leading to a double-scroll scenario.

You can see this issue here: http://benfrain.com/playground/scroll-test.html

In the absence of an implementation that facilitates this, is there any chance of getting some form of meta tag that prevents the address bar chrome resizing?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1885071</commentid>
    <comment_count>1</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2022-07-19 07:09:10 -0700</bug_when>
    <thetext>I think practically this has been entirely solved with the new viewport units in Level 4 (dvh, svh, lvh, etc.)?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>