rustdoc: remove .impl-items { flex-basis } CSS, not in flex container by notriddle · Pull Request #101349 · rust-lang/rust (original) (raw)

Added in 34bd2b8

For this to actually do anything, according to MDN (and Firefox Dev Tools), it must be a "flex item", which only happens if its a direct child of a node with display: flex on it. It seems like it could not have worked at the time when this rule was added, because the only items in rustdoc.css with display: flex active were:

Nowadays, display: flex is a lot more prolific, but .impl-items still seems to only be used in plain block parents:

Also, this would imply that trait items ought to take up as much space as possible, pushing everything else to the edge of the screen. If this is nested directly below the .rustdoc container, which has a row basis, that would be bad.