rustdoc CSS does not reset line-height
to a non-zero value in <pre>
.
#105906
Labels
A-rustdoc-themes
Area: Themes for HTML pages generated by rustdoc
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
Due to GitHub's strict limitations on HTML styling, one of the few ways I found to reduce font size has been the use of
<sub>
/<sup>
tags. However, I recently stumbled upon a difference between GFM and rustdoc's theming:To reproduce, this should be sufficient:
AFAICT, the difference is due to
line-height
:<sub>
/<sup>
set it to0
, and on GitHub we also have:But rustdoc's
normalize.css
doesn't setline-height
to anything in itscode, kbd, pre, samp {...}
rule.I would suggest either
line-height: normal
orline-height: 1.15
(the latter is what it does forhtml
).(I hope crates.io uses rustdoc, otherwise this bug is basically duplicated to two uses of
normalize.css
)The text was updated successfully, but these errors were encountered: