From 0a2bd8878d0c7f5c386ef90aaf8434884910d6c5 Mon Sep 17 00:00:00 2001 From: Ian Rose Date: Fri, 6 Apr 2018 05:09:56 -0700 Subject: [PATCH] Specify height for SVG elements (#1252) * Specify height for SVG elements I ran into an issue where a low-specificity CSS rule elsewhere on the page was overriding the KaTeX SVG height, rendering fraction lines invisible. Does this seem like a reasonable addition to the style sheet? * Inherit instead of 100%. --- src/katex.less | 1 + 1 file changed, 1 insertion(+) diff --git a/src/katex.less b/src/katex.less index 44483ebf..b9b990e4 100644 --- a/src/katex.less +++ b/src/katex.less @@ -445,6 +445,7 @@ display: block; position: absolute; // absolute relative to parent width: 100%; + height: inherit; // We want to inherit colors from our environment fill: currentColor;