Closed Bug 1873625 Opened 1 year ago Closed 1 year ago

Truncation issue in Firefox dropdown menu when full-width spaces are present before and after a string

Categories

(Firefox :: Menus, defect)

Firefox 121
defect

Tracking

()

RESOLVED DUPLICATE of bug 1870973

People

(Reporter: t_naoya_k, Unassigned)

Details

Attachments

(1 file)

Attached image IMG_8594.JPG

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:

  1. Access the following link on Windows/Firefox 121.0: https://codepen.io/pen/
  2. Paste the following code into the HTML:
<select>
  <option> test0001</option>
  <option>test0002 </option>
  <option>test0003</option>
</select>
  1. 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.

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.

Component: Untriaged → Menus

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?

Flags: needinfo?(t_naoya_k)

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.

Flags: needinfo?(t_naoya_k)

(In reply to Mike Conley (:mconley) (:⚙️) from comment #2)
I'm sorry, I forgot to make it a 'reply'. I commented above.

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?

Flags: needinfo?(jfkthame)

This looks like a dupe of bug 1870973 (see also bug 1871526), which was fixed for the 121.0.1 dot release.

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1870973
Flags: needinfo?(jfkthame)
Resolution: --- → DUPLICATE

(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.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: