about summary refs log tree commit diff
path: root/src/librustdoc/html
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-12-24 00:31:43 +0100
committerGitHub <noreply@github.com>2022-12-24 00:31:43 +0100
commit2ace0c64024783c39a84c25564d6f5a2e17eb002 (patch)
tree4a9c3122ef69c19b85d3b8c6f770eb1606f22577 /src/librustdoc/html
parentcc0dc028fc0966f1051308154776547553e50cd4 (diff)
parent1c05d4b02aa424e89b2f157db1a16d01878b5a4f (diff)
downloadrust-2ace0c64024783c39a84c25564d6f5a2e17eb002.tar.gz
rust-2ace0c64024783c39a84c25564d6f5a2e17eb002.zip
Rollup merge of #106093 - notriddle:notriddle/docblock-short-overflow, r=GuillaumeGomez
rustdoc: remove no-op CSS from `.docblock-short`

The rules `overflow:hidden` and `text-overflow:ellipses` only have an effect if overflow occurs, which cannot happen because it will just line wrap instead.

These rules definitely became obsolete by https://github.com/rust-lang/rust/pull/77699, when the stylesheet was decidedly changed to have line wrapping in short docblocks, but given the bug it was fixing, this probably got broken earlier.
Diffstat (limited to 'src/librustdoc/html')
-rw-r--r--src/librustdoc/html/static/css/rustdoc.css2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index e6e82602c3a..2b2b148f05e 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -579,8 +579,6 @@ ul.block, .block li {
 .docblock-short {
 	overflow-wrap: break-word;
 	overflow-wrap: anywhere;
-	overflow: hidden;
-	text-overflow: ellipsis;
 }
 /* Wrap non-pre code blocks (`text`) but not (```text```). */
 .docblock :not(pre) > code,