Skip to content

Instantly share code, notes, and snippets.

@atk
Created November 6, 2012 14:43
Show Gist options
  • Star 38 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • Save atk/4025104 to your computer and use it in GitHub Desktop.
Save atk/4025104 to your computer and use it in GitHub Desktop.
IE10 hack
/*
#ie10 will only be red in MSIE 10,
both in high contrast (display setting) and default mode
*/
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
#ie10 { color: red; }
}
@atk
Copy link
Author

atk commented Jun 30, 2015

Since vendor extensions are part of the standards and are not supported by this validator, the validator is broken, not the style, which is valid in CSS3. Unfortunately, even the W3C's validator doesn't support vendor extensions for media queries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment