Find items becomes misaligned in long line
Categories
(Toolkit :: Find Toolbar, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr91 | --- | unaffected |
| firefox99 | --- | wontfix |
| firefox100 | --- | wontfix |
| firefox101 | --- | wontfix |
| firefox102 | --- | fix-optional |
People
(Reporter: cathoderaydude, Unassigned)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
|
9.24 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/99.0
Steps to reproduce:
Navigate to Wordle: https://www.nytimes.com/games/wordle/index.html
View Source
Navigate to the javascript file containing the game and select it
You are now looking at view-source:https://www.nytimes.com/games/wordle/main.e17c80f8.js
(yes, I was cheating)
Search for "unk" or "ren"
Press enter to "find next" repeatedly
Or, search in reverse to find the last result on the page.
Actual results:
Each instance of "unk" or "ren" is highlighted in turn, until the horizontal scrollbar is about at the 50% point
After this, search results become severely misaligned
They have the correct width, but appear over unmatched text like "," and are sometimes not even character-aligned
Expected results:
Each enter press should have highlighted one instance of "unk" or "ren" until the end of the line.
Comment 1•4 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::Search' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•4 years ago
|
||
Regression range (Win10) points to bug 1607913.
Found commit message:
Bug 1607913 - Use Consolas instead of Courier New in Windows monospace font prefs. r=jfkthame
Updated•4 years ago
|
Updated•4 years ago
|
Comment 3•4 years ago
|
||
:emilio, since you are the author of the regressor, bug 1607913, could you take a look?
For more information, please visit auto_nag documentation.
Comment 4•4 years ago
|
||
This is not really a regression from that bug. This happens on Linux and macOS as well and seems some sort of rounding / floating-point error.
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Comment 6•1 year ago
•
|
||
Just ran into this bug myself. Here's a quick python script that will reproduce it.
Depending on how this bug works and your OS/font, you may have to adjust the number of Xs.
with open('ff-find-bug.htm', 'w') as f:
f.write('<pre>')
for i in range(40000): # 35k is fine on W10, by 40k it's misaligned
f.write('x')
f.write('word to search for, plus some more text after.')
Description
•