Skip to content

Commit 3de3b27

Browse files
Go around firefox bug
1 parent e6f9e2e commit 3de3b27

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
@@ -1001,7 +1001,13 @@ rustdoc-topbar {
10011001
+ var(--line-number-right-margin));
10021002
}
10031003
.src .example-wrap .expansion [data-nosnippet] {
1004-
left: calc((
1004+
/* FIXME: Once <https://bugzilla.mozilla.org/show_bug.cgi?id=1949948> is solved, uncomment
1005+
next line and remove the two other rules. */
1006+
/*left: calc((
1007+
var(--example-wrap-digits-count) + var(--line-number-padding) * 2
1008+
+ var(--line-number-right-margin)) * -1);*/
1009+
position: initial;
1010+
margin-left: calc((
10051011
var(--example-wrap-digits-count) + var(--line-number-padding) * 2
10061012
+ var(--line-number-right-margin)) * -1);
10071013
}

0 commit comments

Comments
 (0)