Skip to content

Commit c9eed92

Browse files
Go around firefox bug
1 parent af2fb8d commit c9eed92

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

+7-1
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,13 @@ ul.block, .block li, .block ul {
959959
+ var(--line-number-right-margin));
960960
}
961961
.src .example-wrap .expansion [data-nosnippet] {
962-
left: calc((
962+
/* FIXME: Once <https://bugzilla.mozilla.org/show_bug.cgi?id=1949948> is solved, uncomment
963+
next line and remove the two other rules. */
964+
/*left: calc((
965+
var(--example-wrap-digits-count) + var(--line-number-padding) * 2
966+
+ var(--line-number-right-margin)) * -1);*/
967+
position: initial;
968+
margin-left: calc((
963969
var(--example-wrap-digits-count) + var(--line-number-padding) * 2
964970
+ var(--line-number-right-margin)) * -1);
965971
}

0 commit comments

Comments
 (0)