Skip to content

Commit 9a7c04f

Browse files
Go around firefox bug
1 parent c1ddb4e commit 9a7c04f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,13 @@ ul.block, .block li, .block ul {
979979
+ var(--line-number-right-margin));
980980
}
981981
.src .example-wrap .expansion [data-nosnippet] {
982-
left: calc((
982+
/* FIXME: Once <https://bugzilla.mozilla.org/show_bug.cgi?id=1949948> is solved, uncomment
983+
next line and remove the two other rules. */
984+
/*left: calc((
985+
var(--example-wrap-digits-count) + var(--line-number-padding) * 2
986+
+ var(--line-number-right-margin)) * -1);*/
987+
position: initial;
988+
margin-left: calc((
983989
var(--example-wrap-digits-count) + var(--line-number-padding) * 2
984990
+ var(--line-number-right-margin)) * -1);
985991
}

0 commit comments

Comments
 (0)