Sha256: fe42ba313c0c4abbb8a6fd8868f85c09bc396b9fde8dee16475c0cf4aad3d257
Contents?: true
Size: 614 Bytes
Versions: 144
Compression:
Stored size: 614 Bytes
Contents
// https://github.com/Modernizr/Modernizr/issues/572 // http://jsfiddle.net/glsee/JDsWQ/4/ Modernizr.addTest('cssvmaxunit', function(){ var bool; Modernizr.testStyles("#modernizr { width: 50vmax; }", function(elem, rule) { var one_vw = window.innerWidth/100, one_vh = window.innerHeight/100, compWidth = parseInt((window.getComputedStyle ? getComputedStyle(elem, null) : elem.currentStyle)['width'],10); bool = ( parseInt(Math.max(one_vw, one_vh)*50,10) == compWidth ); }); return bool; });
Version data entries
144 entries across 144 versions & 7 rubygems