Edge and IE sometimes computes wrong colour in High Contrast theme (Inherit and CurrentColor)

Confirmed Issue #11574067 • Assigned to Kevin B.

Details

Author
Gee L.
Created
Apr 9, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
  • Internet Explorer
Found in build #
14.14393
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

See this blog entry and this fiddle page.

If a div contains an a[href], both have -ms-high-contrast-adjust: none;, the div has color: red; and the a has color: inherit; (also all pseudo-classes have color: inherit;), the resulting colour of the link is wrong.

I found this issue when I try to print a document in High Contrast mode with

@media print
{
  * { -ms-high-contrast-adjust: none !important; }
}

which actually gives a better printing experience. Microsoft should also consider removing High Contrast effects from the printing.

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Steven K.”

      Changed Assigned To to “Bogdan B.”

      Changed Title from “Edge and IE sometimes computes wrong colour in High Contrast theme” to “Edge and IE sometimes computes wrong colour in High Contrast theme (Inherit and CurrentColor)”

      Changed Assigned To from “Bogdan B.” to “Kevin B.”

      Changed Status to “Confirmed”

    • I can reproduce, but I don’t think the impact is sufficient for us to consider fixing this issue at this time. Do you know about public websites that are broken due to this issue?

    • Nope.

      Actually there are few websites that consider High Contrast by using -ms-high-contrast* APIs at all (according to your own stats).

      However, all website suffers the strange stylesheet applied when printing under High Contrast mode. The high contrast feature should only be present on @media screen.

      I understand that there are issues of higher priority at this time and this particular issue could queue indefinitely. But still, please do at least consider removing High Contrast stylesheets from @media print so that pages do not print with strange colours just because the person printed it needs High Contrast mode for his daily use.

    You need to sign in to your Microsoft account to add a comment.

    Sign in