Skip to content

Commit 1c05d4b

Browse files
committed
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 #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.
1 parent 62cc869 commit 1c05d4b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/librustdoc/html/static/css/rustdoc.css

-2
Original file line numberDiff line numberDiff line change
@@ -579,8 +579,6 @@ ul.block, .block li {
579579
.docblock-short {
580580
overflow-wrap: break-word;
581581
overflow-wrap: anywhere;
582-
overflow: hidden;
583-
text-overflow: ellipsis;
584582
}
585583
/* Wrap non-pre code blocks (`text`) but not (```text```). */
586584
.docblock :not(pre) > code,

0 commit comments

Comments
 (0)