Last active
June 11, 2024 09:46
-
-
Save oobleck/8428063 to your computer and use it in GitHub Desktop.
Revisions
-
oobleck revised this gist
Jan 15, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,7 +16,7 @@ Modernizr.addTest('ie11', function() { // ('msTransform' in document.body.style) var match = (!!document.documentMode && !document.all && (!!window.matchMedia || !!window.msMatchMedia) && !Modernizr.websqldatabase && !Modernizr.cssreflections); return match; -
oobleck created this gist
Jan 14, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ // IE10 Modernizr.addTest('ie10', function() { // http://stackoverflow.com/questions/9900311/how-do-i-target-only-internet-explorer-10-for-certain-situations-like-internet-e 'use strict'; var match = (/*@cc_on!@*/false && document.documentMode === 10); return match; }); // IE11 Modernizr.addTest('ie11', function() { // https://en.wikipedia.org/wiki/Internet_Explorer_11 'use strict'; // var ua = navigator.userAgent; // var match = /Trident.*rv[\s:]11\./i.test(ua); // ('msTransform' in document.body.style) var match = (!!document.documentMode && !document.all && Modernizr.mq('only screen') && !Modernizr.websqldatabase && !Modernizr.cssreflections); return match; });