/*!
{
  "name": "CSS vh unit",
  "property": "cssvhunit",
  "caniuse": "viewport-units",
  "tags": ["css"],
  "builderAliases": ["css_vhunit"],
  "notes": [{
    "name": "Related Modernizr Issue",
    "href": "https://github.com/Modernizr/Modernizr/issues/572"
  },{
    "name": "Similar JSFiddle",
    "href": "https://jsfiddle.net/FWeinb/etnYC/"
  }]
}
!*/
define(['Modernizr', 'testStyles', 'computedStyle', 'roundedEquals'], function(Modernizr, testStyles, computedStyle, roundedEquals) {
  testStyles('#modernizr { height: 50vh; }', function(elem) {
    var height = parseInt(window.innerHeight / 2, 10);
    var compStyle = parseInt(computedStyle(elem, null, 'height'), 10);

    Modernizr.addTest('cssvhunit', roundedEquals(compStyle, height));
  });
});

@@ -406,25 +406,8 @@
 yle'
-, 'roundedEquals'
 %5D, f
@@ -450,31 +450,16 @@
 tedStyle
-, roundedEquals
 ) %7B%0A  te
@@ -494,16 +494,34 @@
 t: 50vh;
+ max-height: 10px;
  %7D', fun
@@ -538,63 +538,8 @@
 ) %7B%0A
-    var height = parseInt(window.innerHeight / 2, 10);%0A
     
@@ -605,17 +605,16 @@
 ), 10);%0A
-%0A
     Mode
@@ -644,40 +644,24 @@
 t', 
-roundedEquals(compStyle, height)
+compStyle === 10
 );%0A 

Fix vh unit issue on ios safari / android chrome #1805 (#2452)