first round of dev

This commit is contained in:
Bachir Soussi Chiadmi
2015-11-04 18:23:07 +01:00
parent f2f2bf50bd
commit 2abb12981c
436 changed files with 75036 additions and 48 deletions
@@ -0,0 +1,14 @@
// 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;
});