Skip to content

Instantly share code, notes, and snippets.

@chrisblakley
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisblakley/85dcb71dc5565d4fb8ed to your computer and use it in GitHub Desktop.
Save chrisblakley/85dcb71dc5565d4fb8ed to your computer and use it in GitHub Desktop.
Detect Internet Explorer compatibility modes with css_browser_selector.js and modernizr.js
.ie8.no-hashchange.no-rgba-no.applicationcache.no-pointerevents div.iemode {} /* IE8 w/ IE7 Standards */
.ie9.hashchange.no-rgba.no-applicationcache.no-pointerevents div.iemode {} /* IE9 w/ IE8 Standards */
.ie9.no-hashchange.no-rgba.no-applicationcache.no-pointerevents div.iemode {} /* IE9 w/ IE7 Standards */
.ie10.hashchange.rgba.no-applicationcache.no-pointerevents div.iemode {} /* IE10 w/ IE9 Standards */
.ie10.hashchange.no-rgba.no-applicationcache.no-pointerevents div.iemode {} /* IE10 w/ IE8 Standards */
.ie10.no-hashchange.no-rgba.no-applicationcache.no-pointerevents div.iemode {} /* IE10 w/ IE7 Standards */
.ie7.hashchange.rgba.applicationcache.no-pointerevents div.iemode {} /* IE10 Compatibility w/ IE10 Standards */
.ie7.hashchange.rgba.no-applicationcache.no-pointerevents div.iemode {} /* IE10 Compatibility w/ IE9 Standards */
.ie10.hashchange.rgba.applicationcache.pointerevents div.iemode {} /* IE11 w/ IE10 Standards */
/* Non-Unique IE Environments:
.ie7.no-hashchange.no-rgba.no-applicationcache.no-pointerevents {}
IE7
IE8 Compatibility w/ IE7 Standards
IE9 Compatibility w/ IE7 Standards
IE10 Compatibility w/ IE7 Standards
IE11 w/ IE7 Standards (Could be isolated with OS detection [.win7 ..., .win8 ...])
.ie7.hashchange.no-rgba.no-applicationcache.no-pointerevents {}
IE8 Compatibility w/ IE8 Standards
IE9 Compatibility w/ IE8 Standards
IE10 Compatibility w/ IE8 Standards
.ie7.hashchange.rgba.no-applicationcache.no-pointerevents {}
IE9 Compatibility w/ IE9 Standards
IE10 Compatibility w/ IE9 Standards
.ie8.hashchange.no-rgba.no-applicationcache.no-pointerevents {}
IE8
IE11 w/ IE8 Standards (Could be isolated with OS detection [.win7 ..., .win8 ...])
.ie9.hashchange.rgba.no-applicationcache.no-pointerevents {}
IE9
IE11 w/ IE9 Standards (Could be isolated with OS detection [.win7 ..., .win8 ...])
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment