You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rustdoc: table stripes hide inline code span background color #159234
Its especially bad on the non-ayu dark theme, where the text color for inline spans is white as well, which means the only factor to distinguish inline code from text is the monospace font.
Looking at the issue again this seems to be the default behavior since #105442 and is reproducible in all rust version.
Before #105442 all table rows shared one background color, and inline code spans had a slightly different background, making them visually distinct. After #105442, table rows now alternate between two background colors, and one of those two stripe colors happens to match the existing inline-code background color exactly so on that row, the code span becomes invisible against the background. On the other stripe color, it's still visible.
Activity
kantnero commentedon Jul 16, 2026
Confirmed this doesn't reproduce on stable (1.97.0). I'll look into what change is causing this.
@rustbot claim
kantnero commentedon Jul 16, 2026
Looking at the issue again this seems to be the default behavior since #105442 and is reproducible in all rust version.
Before #105442 all table rows shared one background color, and inline code spans had a slightly different background, making them visually distinct. After #105442, table rows now alternate between two background colors, and one of those two stripe colors happens to match the existing inline-code background color exactly so on that row, the code span becomes invisible against the background. On the other stripe color, it's still visible.
Before:
After
Rollup merge of rust-lang#160438 - GuillaumeGomez:table-odd-code, r=n…
Rollup merge of rust-lang#160438 - GuillaumeGomez:table-odd-code, r=n…
Unrolled build for #160438