Closed Bug 1939472 Opened 1 year ago Closed 4 months ago

chatgpt.com - A dot is present under the message input field area

Categories

(Web Compatibility :: Site Reports, defect, P2)

Desktop
Windows 10

Tracking

(Webcompat Priority:P3, Webcompat Score:3, firefox133 affected, firefox134 affected, firefox135 affected)

VERIFIED WORKSFORME
Webcompat Priority P3
Webcompat Score 3
Tracking Status
firefox133 --- affected
firefox134 --- affected
firefox135 --- affected

People

(Reporter: rbucata, Unassigned)

References

(Depends on 1 open bug, )

Details

(Keywords: webcompat:platform-bug, webcompat:site-report, Whiteboard: [webcompat-source:web-bugs][webcompat:sightline][webcompat:japan][webcompat:core])

User Story

platform:windows,mac,linux,android
impact:minor-visual
configuration:general
affects:all
branch:release
diagnosis-team:layout
user-impact-score:30

Attachments

(2 files)

Environment:
Operating system: Windows 10
Firefox version: Firefox stable

Steps to reproduce:

  1. Navigate to: https://chatgpt.com/
  2. Perform account login
  3. Once on the chatgpt message page, refresh the page
  4. Observe

Expected Behavior:
There are no glitches

Actual Behavior:
A dot in present under the message input area, on the left side

Notes:

  • Reproduces regardless of the status of ETP
  • Reproduces in firefox-nightly, and firefox-release
  • Does not reproduce in chrome

Created from https://github.com/webcompat/web-bugs/issues/145658

Attached video Chr vs FF

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

Whiteboard: [webcompat-source:web-bugs] → [webcompat-source:web-bugs][webcompat:sightline]
Severity: -- → S4
User Story: (updated)
Priority: -- → P2

The dot here is from this element in ChatGPT's DOM:

<div data-radix-popper-content-wrapper="" style="position: fixed; left: 0px; top: 0px; transform: translate(370px, 539px); min-width: max-content; --radix-popper-transform-origin: 0% 0px; z-index: auto; --radix-popper-available-width: 877.5px; --radix-popper-available-height: 424.5px; --radix-popper-anchor-width: 768px; --radix-popper-anchor-height: 96px;"><div data-side="bottom" data-align="start" data-state="open" role="dialog" id="radix-:R19nnkkuiiklj5:" style="--radix-popover-content-transform-origin: var(--radix-popper-transform-origin); --radix-popover-content-available-width: var(--radix-popper-available-width); --radix-popover-content-available-height: var(--radix-popper-available-height); --radix-popover-trigger-width: var(--radix-popper-anchor-width); --radix-popover-trigger-height: var(--radix-popper-anchor-height);" tabindex="-1"></div></div>

If I add [data-radix-popper-content-wrapper] { display: none; } in e.g. a Stylus rule, then the issue goes away. Or if, instead of display:none, I use e.g. border: 30px solid cyan, then the dot becomes more prominent, as you might expect.

It looks like that element is focused (or at least has :focus-visible applied) by default, and that grants outline:auto which in Firefox draws this outline, whereas in Chrome it draws nothing.

Yeah, so there are two differences here that I'm seeing, which both contribute to this problem.

(1) Chrome and WebKit do not draw any outline for outline:auto, if the element has zero height and/orwidth. Whereas Firefox does draw a (very small) outline.

(2) In Firefox, this data-radix-popper-content-wrapper element (or its child?) seem to get focus by default at pageload, for some reason (which in turn grants it that outline:auto, which in turn makes it paint a small outline, which in this case looks like a dot). It doesn't seem to get focus by default in Firefox, though.

These issues combine to cause this problem -- the wrong element is focused at pageload, and that element is 0x0 and happens to draw a tiny ring when it's focused which makes it look like a little graphical glitch.

(In reply to Daniel Holbert [:dholbert] from comment #3)

The dot here is from this element in ChatGPT's DOM:

<div data-radix-popper-content-wrapper=""  [etc...]

Actually the relevant element is the child of that element, which for me has id="radix-:R19nnkkuiiklj5:" but I'm guessing that ID is sort of arbitrary and might not stay the same over time. So it's easier to find the element via the data-radix-popper-content-wrapper attribute on its parent.

(In reply to Daniel Holbert [:dholbert] from comment #5)

(2) In Firefox, this data-radix-popper-content-wrapper element (or its child?) seem to get focus by default at pageload, for some reason

Actually, good news - this part is true in Chrome as well, some of the time at least. There's just some nondeterminism at pageload time that made this sometimes not happen for me.

Here are two user-styles that I applied in the Stylus extension in Chrome to help with poking at Chrome's beahvior here:
STYLE A: make the zero-size element a bit bitter, to artificially trigger the same results in Chrome (nerfing difference (1) from comment 5):

[data-radix-popper-content-wrapper] > * { min-width: 10px; min-height: 10px; }

STYLE B: just add some custom styling to whatever is focused (whether that^ element or some other one):

:focus-visible { height: 50px; width: 200px; background: red; }

STYLE A makes the same bug reproduce for me most of the time in Chrome. When it doesn't reproduce, STYLE B helps illustrate why -- sometimes (not always) the chat message textbox gets autofocused at pageload and the zero-sized element does not get focus.

Depends on: 1940347

I filed bug 1940347 on the fact that we draw an outline around the 0-sized element, which I think is the only real behavioral difference that results in this issue here.

Webcompat Priority: --- → P3
Webcompat Score: --- → 3
Whiteboard: [webcompat-source:web-bugs][webcompat:sightline] → [webcompat-source:web-bugs][webcompat:sightline][webcompat:japan]
User Story: (updated)
Whiteboard: [webcompat-source:web-bugs][webcompat:sightline][webcompat:japan] → [webcompat-source:web-bugs][webcompat:sightline][webcompat:japan][webcompat:core]

I can't repro anymore - it looks like the design has changed now (see screenshot), and I don't see this dot or the adjacent UI, and there's no mention of data-radix-popper-content-wrapper (from comment 3) in the page's DOM at all anymore.

--> Closing as WFM - though Raul, would you mind confirming that this is fixed for you as well?

Flags: needinfo?(rbucata)
Status: NEW → RESOLVED
Closed: 4 months ago
User Story: (updated)
Resolution: --- → WORKSFORME

I can confirm that this is also fixed for me, with the same mention that is seems that an UI update was received

Status: RESOLVED → VERIFIED
Flags: needinfo?(rbucata)

Thanks!

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

Attachment

General

Creator:
Created:
Updated:
Size: