mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 03:08:40 +00:00
fix: Protect fraction bars from CSS border-color (#2870)
* fix: Protect fraction bars from CSS border-color `border-color` is not inheritable, so the previous fix did not work. * Fix lint Co-authored-by: Erik Demaine <edemaine@mit.edu>
This commit is contained in:
@@ -17,12 +17,14 @@
|
||||
// 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;
|
||||
|
||||
// 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; }
|
||||
// Insulate fraction bars and rules from CSS that sets border-color.
|
||||
border-color: currentColor;
|
||||
}
|
||||
|
||||
.katex-version::after {
|
||||
content: @version;
|
||||
|
Reference in New Issue
Block a user