From eaa7f3a17dde72b13506deee988d87133405283b Mon Sep 17 00:00:00 2001 From: Erik Demaine Date: Thu, 15 Jun 2017 19:01:58 -0400 Subject: [PATCH] Fix high contrast mode better, thanks to @GeeLaw (#733) --- static/katex.less | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/katex.less b/static/katex.less index e4f87ea0..1842e462 100644 --- a/static/katex.less +++ b/static/katex.less @@ -22,8 +22,9 @@ // Protect elements inside .katex from inheriting text-indent. text-indent: 0; - // Prevent background resetting in Windows's high-contrast mode. - -ms-high-contrast-adjust: none !important; + // Prevent background resetting on elements in Windows's high-contrast + // mode, while still allowing background/foreground setting on root .katex + * { -ms-high-contrast-adjust: none !important; } .katex-html { // Making .katex inline-block allows line breaks before and after,