Sha256: 9347d02ec24679cf1812d90cb9be99167263ae10410e8132c59000ad9fce1129
Contents?: true
Size: 541 Bytes
Versions: 144
Compression:
Stored size: 541 Bytes
Contents
// https://github.com/Modernizr/Modernizr/issues/572 // Similar to http://jsfiddle.net/FWeinb/etnYC/ Modernizr.addTest('cssvhunit', function() { var bool; Modernizr.testStyles("#modernizr { height: 50vh; }", function(elem, rule) { var height = parseInt(window.innerHeight/2,10), compStyle = parseInt((window.getComputedStyle ? getComputedStyle(elem, null) : elem.currentStyle)["height"],10); bool= (compStyle == height); }); return bool; });
Version data entries
144 entries across 144 versions & 7 rubygems