Skip to content

Commit

Permalink
Rollup merge of rust-lang#106093 - notriddle:notriddle/docblock-short…
Browse files Browse the repository at this point in the history
…-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 rust-lang#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.
  • Loading branch information
matthiaskrgr committed Dec 23, 2022
2 parents cc0dc02 + 1c05d4b commit 2ace0c6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2ace0c6

Please sign in to comment.