Rollup merge of #90233 - GuillaumeGomez:tooltip-overflow, r=camelid

Tooltip overflow

Fixes #89185.

r? ``@camelid``
This commit is contained in:
Guillaume Gomez 2021-10-25 16:34:53 +02:00 committed by GitHub
commit 6c0dcb41bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -532,7 +532,7 @@ nav.sub {
position: relative;
}
.docblock > * {
.docblock > :not(.information) {
max-width: 100%;
overflow-x: auto;
}

View File

@ -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)