Open Bug 1977310 Opened 6 months ago Updated 3 months ago

www.google.com - Last character is covered by unexpected vertical scroll bar in Google search field sometimes

Categories

(Core :: Layout: Text and Fonts, defect)

Desktop
Windows 11
defect

Tracking

()

Tracking Status
firefox142 --- affected

People

(Reporter: alice0775, Unassigned, NeedInfo)

References

(Blocks 1 open bug)

Details

(Whiteboard: [jp-reserve])

Attachments

(3 files)

Attached image screenshot

Steps to reproduce:

  1. Open https://www.google.com/ (no need log-in)
  2. Type つあも, or copy & paste it
  3. Move caret to start
  4. Type random character such as aahjghjhk

Actual results:
Sometimes a vertical scrollbar appears over the last character.
Screencast: https://youtu.be/P2O1AkD12Qw

This seems to occur regardless of dark/light theme.
This seems to occur regardless of whether IME is turned on or off.
This seems to occur when the last character is a Japanese character.

Not a resent regression.

Expected results:
No such vertical scrollbar.

Work-around:
Remove css property line-height or overflow-x from the following css.

textarea.gLFyf, .YacQv {
    font-family: Arial,sans-serif;
    line-height: 22px;
    border-bottom: 8px solid transparent;
    padding-top: 14px;
    overflow-x: hidden;
}

Alternatively, change the default Japanese font to a font other than Meiryo.

Attached file about:support
Summary: Last character is covered by unexpected vertical scroll bar in Google search field sometimes → www.google.com - Last character is covered by unexpected vertical scroll bar in Google search field sometimes
Blocks: 1974034
Blocks: jp-text

The severity field is not set for this bug.
:hiro, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(hikezoe.birchill)

There's a div element just above the textarea for the search field.

<div jsname="vdLsw" class="YacQv"><span>yyyyyyyyy</span>つあも</div>

The class name YacQv matches the style sheet in comment 0.

So, given that removing overflow-x:hidden or line-height:22px fixes this issue, I suppose there appears the horizontal scrollbar at that moment because of overflowing the content vertically. So to reproduce this bug, the characters are important, I presume "y" is one of the characters overflowing. Also given that this bug blocks bug 1974034, this bug happens with Noto fonts?

Moving into Layout:Text and Fonts.

Component: Layout: Scrolling and Overflow → Layout: Text and Fonts
Flags: needinfo?(hikezoe.birchill)

"Noto Sans JP" good
"Meiryo" Bad

Whiteboard: [jp-reserve]

(In reply to Hiroyuki Ikezoe (:hiro) from comment #3)

So, given that removing overflow-x:hidden or line-height:22px fixes this issue, I suppose there appears the horizontal scrollbar at that moment because of overflowing the content vertically.

This comment is quite bogus. Ignore about the horizontal scrollbar. I just meant it's vertically overflowing at that moment.

The severity field is not set for this bug.
:alaskanemily, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(emcdonough)
See Also: → 1987349

Still reproduced

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

Attachment

General

Created:
Updated:
Size: