diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css
index 3b52fd94d273e..db200fe79132d 100644
--- a/src/librustdoc/html/static/rustdoc.css
+++ b/src/librustdoc/html/static/rustdoc.css
@@ -200,6 +200,12 @@ summary {
outline: none;
}
+/* FIXME: Remove after normalize.css is either upgraded or removed (#86629) */
+details:not(.rustdoc-toggle) summary {
+ margin-bottom: .6em;
+ display: list-item;
+}
+
code, pre, a.test-arrow {
font-family: "Source Code Pro", monospace;
}
@@ -897,10 +903,6 @@ body.blur > :not(#help) {
display: inline;
}
-.stab summary {
- display: list-item;
-}
-
.stab .emoji {
font-size: 1.5em;
}