Skip to content

Commit 6c0dcb4

Browse files
Rollup merge of #90233 - GuillaumeGomez:tooltip-overflow, r=camelid
Tooltip overflow Fixes #89185. r? ``@camelid``
2 parents bd48b99 + 345519b commit 6c0dcb4

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)