Page MenuHomePhabricator

DiscussionTools comment anchor interferes with dimension of link at the beginning of a comment
Closed, DuplicatePublicBUG REPORT

Description

DiscussionTools inserts a <span data-mw-comment-start> anchor to the beginning of the comment. When the comment starts with an internal link, the anchor is placed within the <a> tag. When the anchor is focused via URL fragment, a <div> is inserted after it to highlight the linked comment. When the div is inside the link, this messes up link dimensions, which results in some weird visual effects with misplaced underline:

Overline-instead-of-underline.png (128×220 px, 9 KB)

Examples: