From 48dff183b5317f2e36ddc96c799c5bb629ea45d8 Mon Sep 17 00:00:00 2001 From: Ron Kok Date: Fri, 10 Jul 2020 10:16:39 -0700 Subject: [PATCH] Protect fraction bars from CSS border-color (#2292) --- src/katex.less | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/katex.less b/src/katex.less index 5c28aee0..8500ba8c 100644 --- a/src/katex.less +++ b/src/katex.less @@ -17,6 +17,9 @@ // Prevent a rendering bug that misplaces \vec in Chrome. text-rendering: auto; + // Insulate fraction bars and rules from CSS that sets border-color. + border-color: currentColor; + // 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; } @@ -570,7 +573,6 @@ .fcolorbox { box-sizing: border-box; border: 0.04em solid; // \fboxrule = 0.4pt - border-color: inherit; } .cancel-pad {