Use margin to position comment marker to avoid Chrome bug

Bug: T317135
Change-Id: I627d92fabaa9d9e477279041d3c40a7c6bfe37c8
This commit is contained in:
Ed Sanders 2022-09-14 10:01:53 +02:00
parent 93713ffab4
commit 39502b4f9a

View file

@ -4,9 +4,10 @@
span[ data-mw-comment-start ] { span[ data-mw-comment-start ] {
// Give comment anchors a negative offset so we don't position // Give comment anchors a negative offset so we don't position
// them right at the edge of the page when jumping to them // them right at the edge of the page when jumping to them.
position: relative; // Use margin rather than position to avoid Chrome bug (T317135).
top: -1em; position: absolute;
margin-top: -1em;
} }
// stylelint-disable-next-line selector-list-comma-newline-after // stylelint-disable-next-line selector-list-comma-newline-after