Merge "Use margin to position comment marker to avoid Chrome bug"

This commit is contained in:
jenkins-bot 2022-09-19 16:57:16 +00:00 committed by Gerrit Code Review
commit b594a99a12

View file

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