Skip to content

Commit

Permalink
Rollup merge of #90233 - GuillaumeGomez:tooltip-overflow, r=camelid
Browse files Browse the repository at this point in the history
Tooltip overflow

Fixes #89185.

r? ``@camelid``
  • Loading branch information
GuillaumeGomez committed Oct 25, 2021
2 parents bd48b99 + 345519b commit 6c0dcb4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ nav.sub {
position: relative;
}

.docblock > * {
.docblock > :not(.information) {
max-width: 100%;
overflow-x: auto;
}
Expand Down
8 changes: 8 additions & 0 deletions src/test/rustdoc-gui/overflow-tooltip-information.goml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// The goal of this test is to ensure that the tooltip `.information` class doesn't
// have overflow and max-width CSS rules set because they create a bug in firefox on
// mac. For more information: https://github.com/rust-lang/rust/issues/89185
goto: file://|DOC_PATH|/test_docs/fn.foo.html
assert-css: (".docblock > .information", {
"overflow-x": "visible",
"max-width": "none"
}, ALL)

0 comments on commit 6c0dcb4

Please sign in to comment.