rustdoc output on nightly uses bold text in Safari #119050
Labels
A-rustdoc-ui
Area: Rustdoc UI (generated HTML)
C-bug
Category: This is a bug.
O-macos
Operating system: macOS
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Running
cargo +nightly doc
on 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 doc
is 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)
The text was updated successfully, but these errors were encountered: