Sha256: 4198c133be3f704684e5ce27b902ddcea614db82ba1b2a211025146455cdaf2c
Contents?: true
Size: 615 Bytes
Versions: 144
Compression:
Stored size: 615 Bytes
Contents
// https://github.com/Modernizr/Modernizr/issues/572 // http://jsfiddle.net/glsee/JRmdq/8/ Modernizr.addTest('cssvminunit', function(){ var bool; Modernizr.testStyles("#modernizr { width: 50vmin; }", 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.min(one_vw, one_vh)*50,10) == compWidth ); }); return bool; });
Version data entries
144 entries across 144 versions & 7 rubygems