import from la bonne adresse and first refactoring for ouidade.com
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// 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;
|
||||
});
|
||||
Reference in New Issue
Block a user