diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-10-25 16:34:53 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-25 16:34:53 +0200 |
| commit | 6c0dcb41bd16865b9ace5048243d3ea5a0daf7a5 (patch) | |
| tree | a63a68da57bd98fd654fc99c11b40a59bc2388b6 | |
| parent | bd48b9975a0555b217d03b0f9b1a46ab798eaa1a (diff) | |
| parent | 345519baa7669a49bc4b79882ac97d4e358b42b1 (diff) | |
| download | rust-6c0dcb41bd16865b9ace5048243d3ea5a0daf7a5.tar.gz rust-6c0dcb41bd16865b9ace5048243d3ea5a0daf7a5.zip | |
Rollup merge of #90233 - GuillaumeGomez:tooltip-overflow, r=camelid
Tooltip overflow Fixes #89185. r? ``@camelid``
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 2 | ||||
| -rw-r--r-- | src/test/rustdoc-gui/overflow-tooltip-information.goml | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index 6c908a21c39..4e4dd21120f 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -532,7 +532,7 @@ nav.sub { position: relative; } -.docblock > * { +.docblock > :not(.information) { max-width: 100%; overflow-x: auto; } diff --git a/src/test/rustdoc-gui/overflow-tooltip-information.goml b/src/test/rustdoc-gui/overflow-tooltip-information.goml new file mode 100644 index 00000000000..7ef85a4c445 --- /dev/null +++ b/src/test/rustdoc-gui/overflow-tooltip-information.goml @@ -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) |
