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