Skip to content

Commit 345519b

Browse files
Fix scrollbars appearing on information tooltip on mac when they shouldn't
1 parent 56694b0 commit 345519b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/librustdoc/html/static/css/rustdoc.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ nav.sub {
532532
position: relative;
533533
}
534534

535-
.docblock > * {
535+
.docblock > :not(.information) {
536536
max-width: 100%;
537537
overflow-x: auto;
538538
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// The goal of this test is to ensure that the tooltip `.information` class doesn't
2+
// have overflow and max-width CSS rules set because they create a bug in firefox on
3+
// mac. For more information: https://github.com/rust-lang/rust/issues/89185
4+
goto: file://|DOC_PATH|/test_docs/fn.foo.html
5+
assert-css: (".docblock > .information", {
6+
"overflow-x": "visible",
7+
"max-width": "none"
8+
}, ALL)

0 commit comments

Comments
 (0)