-
-
Notifications
You must be signed in to change notification settings - Fork 17.3k
Rustdoc: table stripes hide inline code span background color #159234
Copy link
Copy link
Closed
Labels
A-rustdoc-uiArea: Rustdoc UI (generated HTML)Area: Rustdoc UI (generated HTML)C-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.T-rustdoc-frontendRelevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.
Description
Activity
Metadata
Metadata
Assignees
Labels
A-rustdoc-uiArea: Rustdoc UI (generated HTML)Area: Rustdoc UI (generated HTML)C-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.T-rustdoc-frontendRelevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.
Code
I ran into this in Bevy, tho the effect is noticeable in any rustdoc docs which uses a table containing inline code spans.
Reproduction Steps
like thisi the second rowExpected Outcome
Inline code spans background to stand out inside tables, making it easy to understand whats supposed to be code and what text.
Actual Output
Example here: https://docs.rs/bevy_scene/latest/bevy_scene/macro.bsn.html
Screencast_20260713_173318.webm
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.
Version
rustdoc 1.98.0-nightly (57d0690 2026-05-27)
But the css still exists on main as of posting this.
Additional Details
Introduced by #105486 best i can tell