naveen naveen - 1 year ago 119
CSS Question

What is this css rule -ms-high-contrast-adjust?

While viewing Facebook source, I came across this property. Google yeilded no results.

i.img {
-ms-high-contrast-adjust: none;
_overflow: hidden;

Apparently, chrome inspector doesn't recognize it.

Chrome Inspector

Answer Source

Docs for -ms-high-contrast-adjust can be found here:

Gets or sets a value that indicates whether to override any Cascading Style Sheets (CSS) properties that would have been set in high contrast mode.

auto Indicates the applicable CSS properties will be adjusted as expected when the system is in high contrast mode.

none Indicates the applicable CSS properties will not be adjusted when the system is in high contrast mode.

More info on the underscore prefix can be found in this post: Does the minus sign or underscore in css do anything?

And this wiki article:

Versions 6 and below of Internet Explorer recognized properties with this prefix (after discarding the prefix). All other browsers ignore such properties as invalid. Therefore, a property that is preceded by an underscore or a hyphen was applied exclusively in Internet Explorer 6 and below.

Edit: When using a search engine, wrap your CSS rule in quotes to have the results you want pop up. For example:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download