Defect #37390
closedExtraneous whitespace when selecting and copying issue number on Chrome/Windows
0%
Description
On Chrome and Chrome-derived browsers on Windows, when selecting the issue number in the title an extra whitespace at the end of the issue number.
Our analysis shows this is due to the combination of the class="inline-flex"
and the newline \n
separating the h2
title and the open/closed span
.
One way to fix this would be to remove the inline-flex
css directive from the h2
title, this breaks the layout though. Another way would be to remove the \n
between the h2
and span
elements. This might require some additional margin between the h2
and span
elements as the \n
causes a visible space between the 2 elements.
Files
Updated by Tomomi Yuzuriha over 2 years ago
- File 37390-confirmed.png 37390-confirmed.png added
I have confirmed the issue.
Updated by Marius BĂLTEANU about 2 years ago
- Status changed from New to Confirmed
Updated by Thomas Löber almost 2 years ago
That looks to me like a Chrome bug. Even when removing any whitespace between </h2>
and the badge <span>
, with the inline-flex
display style Chrome still selects the non-existing blank.
When using the inline-block
display style instead, selecting the issue number works fine.
I have attached a patch.
Updated by Go MAEDA almost 2 years ago
- Target version set to Candidate for next minor release
I have confirmed that Improve_issue_header_text_selection.patch fixes the issue.