-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
rustdoc output on nightly uses bold text in Safari #119050
Copy link
Copy link
Open
Labels
A-rustdoc-uiArea: Rustdoc UI (generated HTML)Area: Rustdoc UI (generated HTML)C-bugCategory: This is a bug.Category: This is a bug.O-macosOperating system: macOSOperating system: macOST-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.
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.O-macosOperating system: macOSOperating system: macOST-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.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Running
cargo +nightly docon a library crate and viewing the resulting documentation in Safari 17.2 on macOS Sonoma 14.2 results in all non-code text being bold, like so:However, if
cargo docis run on the same crate using Rust stable 1.74.1, the resulting docs are formatted correctly:When the built-on-nightly docs are opened in Firefox or Chrome, the text is not bold. Recently-built docs on docs.rs are not bold in Safari at all.
Inspecting the web elements shows that Safari considers the text to have a font-weight of 400 (normal), so I'm guessing the problem is down to the selection of the font. However, this is where my web styling skills end.
Stable Rust version:
rustc --version --verbose:Nightly Rust version:
rustc +nightly --version --verbose:Crate used to build docs shown above: https://github.com/jwodder/strtoint (though the problem happens with every library crate I build docs for)