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%.
This commit is contained in:
Ian Rose
2018-04-06 05:09:56 -07:00
committed by Erik Demaine
parent cbfcd57162
commit 0a2bd8878d

View File

@@ -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;