Truncation issue in Firefox dropdown menu when full-width spaces are present before and after a string
Categories
(Firefox :: Menus, defect)
Tracking
()
People
(Reporter: t_naoya_k, Unassigned)
Details
Attachments
(1 file)
36.98 KB,
image/jpeg
|
Details |
Steps to reproduce:
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0
Description:
In Windows/Firefox's dropdown menu, a bug occurs where if there are full-width spaces before and after a string, the last four characters of the string are truncated and displayed as '...'. Here are the steps to reproduce:
Steps to reproduce:
- Access the following link on Windows/Firefox 121.0: https://codepen.io/pen/
- Paste the following code into the HTML:
<select>
<option> test0001</option>
<option>test0002 </option>
<option>test0003</option>
</select>
- Please open the displayed dropdown menu.
Actual results:
As shown in the attached file, the last 4 characters of the string are truncated and displayed as '...'.
Expected results:
The string should be fully displayed without any truncation.
Comment 1•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::Menus' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•1 year ago
|
||
Hi t_naoya_k,
Thanks for reporting this. I'm unable to reproduce this myself on Windows or macOS. Do you have a non-default font zoom level set up in Windows settings? Something other than "100%"?
If not, how about Firefox's font settings? If you go to about:preferences#general and scroll down to "Fonts", what settings do you have there? And under Advanced?
Hi Mike,
Thank you for checking.
There are no settings for font zoom level other than the default. It's 100%.
The font setting is the default 'Meiryo' font.
Because it's a 'full-width space' in Japanese font, it might not be reproducible if you can't use Japanese font in your environment.
I think it's reproducible if you can input or display a 'full-width space' in Japanese font.
It's 'U+3000' in Unicode.
Also, I can't reproduce it in a Mac environment. It's only reproducible on Windows.
(In reply to Mike Conley (:mconley) (:⚙️) from comment #2)
I'm sorry, I forgot to make it a 'reply'. I commented above.
Comment 5•1 year ago
|
||
Thanks, t_naoya_k! That's very helpful.
Hey jfkthame, not sure if you're the right person to ask here, but is this result of a mistake somewhere in calculating layout / menu size based on this font?
Comment 6•1 year ago
|
||
This looks like a dupe of bug 1870973 (see also bug 1871526), which was fixed for the 121.0.1 dot release.
(In reply to Jonathan Kew [:jfkthame] from comment #6)
Thank you! It was exactly the same problem.
Also, it seems that a fix was released on the day I created the issue.
I have confirmed that it does not reproduce in 121.0.1.
Description
•