Archetype-CSS / Archetype

Archetype (n): 1. A symbol, pattern, or prototype upon which others are copied, patterned, or emulated; 2. A flexible, object oriented, Sass architecture for mobile-first, responsive builds with integrated, living style guide
0 stars 0 forks source link

Feature Support via Modernizr #8

Open kwaledesign opened 10 years ago

kwaledesign commented 10 years ago

Feature Support via Modernizr

Classes inserted into IE by Modernizr

IE11

js flexbox canvas canvastext webgl no-touch geolocation postmessage no-websqldatabase indexeddb hashchange history draganddrop websockets rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow textshadow opacity cssanimations csscolumns cssgradients no-cssreflections csstransforms csstransforms3d csstransitions fontface generatedcontent video audio localstorage sessionstorage webworkers applicationcache svg inlinesvg no-smil svgclippaths

IE10


js flexbox canvas canvastext no-webgl no-touch geolocation postmessage no-websqldatabase indexeddb hashchange history draganddrop websockets rgba hsla multiplebgs backgroundsize no-borderimage borderradius boxshadow textshadow opacity cssanimations csscolumns cssgradients no-cssreflections csstransforms csstransforms3d csstransitions fontface generatedcontent video audio localstorage sessionstorage webworkers applicationcache svg inlinesvg no-smil svgclippaths

IE9


js no-flexbox canvas canvastext no-webgl no-touch geolocation postmessage no-websqldatabase no-indexeddb hashchange no-history draganddrop no-websockets rgba hsla multiplebgs backgroundsize no-borderimage borderradius boxshadow no-textshadow opacity no-cssanimations no-csscolumns no-cssgradients no-cssreflections csstransforms no-csstransforms3d no-csstransitions fontface generatedcontent video audio localstorage sessionstorage no-webworkers no-applicationcache svg inlinesvg no-smil svgclippaths

IE8


js no-flexbox no-canvas no-canvastext no-webgl no-touch no-geolocation postmessage no-websqldatabase no-indexeddb hashchange no-history draganddrop no-websockets no-rgba no-hsla no-multiplebgs no-backgroundsize no-borderimage no-borderradius no-boxshadow no-textshadow no-opacity no-cssanimations no-csscolumns no-cssgradients no-cssreflections no-csstransforms no-csstransforms3d no-csstransitions fontface generatedcontent no-video no-audio localstorage sessionstorage no-webworkers no-applicationcache no-svg no-inlinesvg no-smil no-svgclippaths

IE7


js no-flexbox no-canvas no-canvastext no-webgl no-touch no-geolocation postmessage no-websqldatabase no-indexeddb no-hashchange no-history draganddrop no-websockets no-rgba no-hsla no-multiplebgs no-backgroundsize no-borderimage no-borderradius no-boxshadow no-textshadow no-opacity no-cssanimations no-csscolumns no-cssgradients no-cssreflections no-csstransforms no-csstransforms3d no-csstransitions fontface no-generatedcontent no-video no-audio localstorage sessionstorage no-webworkers no-applicationcache no-svg no-inlinesvg no-smil no-svgclippaths

kwaledesign commented 10 years ago
// If pre-defined classes *are* found on the HTML element (from Modernizr), log them
// to the console. You can do something entirely different, such as prepending a list
// of the found classes to the body element (for example).

var featureTest = [
    'no-rgba',
    'no-backgroundsize',
    'no-opacity',
    'no-cssanimations',
    'no-cssgradients',
    'no-csstransforms',
    'no-csstransitions',
    'no-fontface',
    'no-generatedcontent',
    'no-svg',
    'no-inlinesvg'
];

// For each class in the above array...
$.each(featureTest, function(index, value){
    // ...if that class exists on the HTML element (from Modernizr)...
    if ($('html').hasClass(value)) {
        // ...say so in the console.
        console.log(value + ' reported');
    }
});
kwaledesign commented 10 years ago

use Jacket and create contexts for each Modernizr class