Created
November 6, 2012 14:43
-
-
Save atk/4025104 to your computer and use it in GitHub Desktop.
IE10 hack
This file contains 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 characters
/* | |
#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; } | |
} |
Hi Guys,
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)
In this style does not validate in http://www.css-validator.org/validator. How to validate this style in css.
Please give any solution
Thanks
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
Another hack :
element, x::-ms-clear {
style here
}
@crisgrim :
element, x::-moz-placeholder {
style here
}
element, x::-webkit-color-swatch {
style here
}