mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-07 04:08:43 +00:00
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:
@@ -445,6 +445,7 @@
|
|||||||
display: block;
|
display: block;
|
||||||
position: absolute; // absolute relative to parent
|
position: absolute; // absolute relative to parent
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
height: inherit;
|
||||||
|
|
||||||
// We want to inherit colors from our environment
|
// We want to inherit colors from our environment
|
||||||
fill: currentColor;
|
fill: currentColor;
|
||||||
|
Reference in New Issue
Block a user