-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rustdoc page styles are broken with Waterfox #75011
Comments
This is a rustdoc issue, not docs.rs. I transferred to rust-lang/rust. |
Can you give an example page where this happens? |
It happens with every crate on https://docs.rs E.g. https://docs.rs/griddle/0.3.1/griddle/ (randomly selected by "I'm feeling lucky") |
I don't see it on https://docs.rs/postgres/0.17.0-alpha.2/postgres/. So it looks like it might have been introduced as part of the Ayu theme, cc @Cldfire |
Would the fix be as simple as changing |
Hmm, this looks like the relevant code, but it uses rust/src/librustdoc/html/layout.rs Lines 172 to 186 in 0e89f50
|
@jyn514 yes; the postgres link is ok (seems to be generated by rust-1.41). It affects probably crates which were uploaded recently. Trying to change |
https://rust-lang.github.io/rfcs/1985-tiered-browser-support.html#supported-browsers
The latest ESR of firefox is 68: https://www.mozilla.org/en-US/firefox/68.0esr/releasenotes/ So I'm inclined to close this as wontfix. |
Accordingly https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#Browser_compatibility it is not supported by Safari either (which is in your list). As already noted, page above says about this attribute "Deprecated. Not for use in new websites." and "Non-standard. Expect poor cross-browser support". |
Changing styles appears to work fine on recent mobile and desktop Safari, so if it's not supported, it's not supported in a way which doesn't break anything. |
Nevertheless, it is bad to rely on deprecated and proprietary extensions and break websites completely. |
@ensc I understand your viewpoint and I realize this is frustrating. However the rustdoc team has limited time and resources, and we have to choose how to spend it. If you have ideas how to fix this feel free to make a PR and I (or another team member) would be happy to review it. |
@ensc I apologize for the problem I created here with my PR! It's never fun to have one's setup broken by changes made elsewhere, and for that I am sorry. I was actually unaware that the As others in this thread have made clear, the browser support target around here is fairly recent. This is a consequence of the fact that most of us are unpaid volunteers, and while we do care deeply about the end users of Rust, we are limited in the time and energy we posses to keep things working for older and / or more niche setups, unfortunately. That being said, I definitely agree that it would be in everyone's best interest to move away from the use of the In particular, it appears that the mdbook project uses StyleSheet.disabled (as seen here), and that method is not deprecated and appears to have much better browser support. Using that instead could perhaps improve the situation here for all parties concerned. |
https://docs.rs does not work with Waterfox because it relies on the non-standard
disabled=""
Attribute in the theme<link>
tags:Without "disabled" support (which is the case with Waterfox), all three links will be enabled and will make the (imo unreadable) "ayu" the active one.
Accordingly https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link this attribute requires very recent browsers and is marked as "Deprecated: do not use for new websites"
The text was updated successfully, but these errors were encountered: