]> git.lizzy.rs Git - rust.git/commitdiff
rustdoc: remove no-op CSS from `.docblock-short`
authorMichael Howell <michael@notriddle.com>
Fri, 23 Dec 2022 18:42:47 +0000 (11:42 -0700)
committerMichael Howell <michael@notriddle.com>
Fri, 23 Dec 2022 19:02:23 +0000 (12:02 -0700)
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.

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

index 3ea83cc41ef7e1d633d791f5e19320f8e6ba5966..a482a55fe4b4d4b2103fbe1bf142bf236e139f9f 100644 (file)
@@ -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,