Closed Bug 2057894 Opened 5 days ago Closed 3 days ago

Fidelity NetBenefits chatbot text-entry placeholder text is clipped on the bottom

Categories

(Core :: Layout: Form Controls, defect)

defect

Tracking

()

RESOLVED FIXED
155 Branch
Tracking Status
firefox-esr140 --- unaffected
firefox-esr153 --- fixed
firefox153 --- wontfix
firefox154 --- fixed
firefox155 --- fixed

People

(Reporter: dholbert, Assigned: emilio)

References

(Regression)

Details

(Keywords: regression, webcompat:site-bug, Whiteboard: [autowebcompat:processed][autowebcompat:repro-success], [wptsync upstream])

User Story

autowebcompat-repro-status:success
autowebcompat-repro-chrome-mask-fixed:false
autowebcompat-repro-channels:nightly,stable,esr

Attachments

(9 files)

Attached image screenshot

STR:

  1. Visit https://nb.fidelity.com/public/nbpreloginnav/spa/fidelitywork/core/home (Fidelity NetBenefits log-in page)
  2. Dismiss any cookie popup (accept or reject, doesn't matter)
  3. Click the green chat-bubble near the bottom right of the page, with "..." (appears a second or so after pageload)
  4. Look at the Type your question here placeholder-text (particularly the q)

ACTUAL RESULTS:
The descenders on y and q are clipped.

EXPECTED RESULTS:
No clipping.

Chrome 151.0.7896.2 (Official Build) dev (64-bit) gives EXPECTED RESULTS.

Firefox Nightly 155.0a1 on Android and Ubuntu (at least) give ACTUAL RESULTS.

Note: After a bit of interaction (e.g. typing and then deleting some text input in the textfield), the issue goes away (the placeholder text shifts upwards a bit)

Whiteboard: [autowebcompat:processed]
User Story: (updated)
Whiteboard: [autowebcompat:processed] → [autowebcompat:processed][autowebcompat:repro-success]

Reproduced in Firefox. On the Fidelity NetBenefits pre-login page, opening the Virtual Assistant chat shows a text-entry field whose placeholder "Type your question here..." has its descenders clipped: the bottoms of the "y" (in "Type"/"your") and "q" (in "question") are cut off flat. This is a visual rendering bug consistent with the report. The textarea has computed height:20px, font-size:16px, line-height:normal and no vertical padding, leaving no room for descenders. The Chrome cross-check could NOT be confirmed in this environment: the virtual-assistant script bundles (assets.fidelity.com/virtual-assistant/runtime|polyfills|main.*-bundle.js) repeatedly failed to load with net::ERR_HTTP2_PROTOCOL_ERROR, so the chat launcher never rendered and the chat could not be opened in Chrome. That is an environmental network failure rather than the site's actual Chrome behavior, so chrome_reproduced is left null. The report states Chrome (and after typing/deleting text in Firefox the placeholder shifts up and the clipping goes away), indicating this is a Firefox-specific rendering issue.

:emilio, since you are the author of the regressor, bug 2031757, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(emilio)

Set release status flags based on info from the regressing bug 2031757

Attached file Reduced test-case

In the regressing bug we did the same for line-height for similar
reasons. In this case the site is setting vertical-align on
::placeholder but expecting it not to have an effect.

It doesn't have an effect per spec:

All properties that apply to the ::first-line pseudo-element also
apply to the ::placeholder pseudo-element, except those defined in
[CSS-INLINE-3].

Implement that to the letter (which in practice only impacts
vertical-align).

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/3d37da6a78fe https://hg.mozilla.org/integration/autoland/rev/64d487415d14 Don't apply vertical-align to ::placeholder. r=dholbert,layout-reviewers,firefox-style-system-reviewers,dshin
Severity: -- → S3
Component: Site Reports → Layout: Form Controls
Product: Web Compatibility → Core

I'm assuming this is wontfix for firefox153 (already in release), but we might consider fixing this in 153esr.

Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/61562 for changes under testing/web-platform/tests

Whiteboard: [autowebcompat:processed][autowebcompat:repro-success] → [autowebcompat:processed][autowebcompat:repro-success], [wptsync upstream]
Status: ASSIGNED → RESOLVED
Closed: 3 days ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch

Upstream PR merged by moz-wptsync-bot

The patch landed in nightly and beta is affected, along with ESR.
:emilio, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(emilio)

In the regressing bug we did the same for line-height for similar
reasons. In this case the site is setting vertical-align on
::placeholder but expecting it not to have an effect.

It doesn't have an effect per spec:

All properties that apply to the ::first-line pseudo-element also
apply to the ::placeholder pseudo-element, except those defined in
[CSS-INLINE-3].

Implement that to the letter (which in practice only impacts
vertical-align).

Original Revision: https://phabricator.services.mozilla.com/D314283

Attachment #9617231 - Flags: approval-mozilla-beta?

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: Trivial-ish compat fix.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: yes
  • Steps to reproduce for manual QE testing: comment 0
  • Risk associated with taking this patch: low
  • Explanation of risk level: stops making some properties apply to ::placeholder as per spec.
  • String changes made/needed?: none
  • Is Android affected?: yes
Flags: qe-verify+

In the regressing bug we did the same for line-height for similar
reasons. In this case the site is setting vertical-align on
::placeholder but expecting it not to have an effect.

It doesn't have an effect per spec:

All properties that apply to the ::first-line pseudo-element also
apply to the ::placeholder pseudo-element, except those defined in
[CSS-INLINE-3].

Implement that to the letter (which in practice only impacts
vertical-align).

Original Revision: https://phabricator.services.mozilla.com/D314283

Attachment #9617232 - Flags: approval-mozilla-esr153?

firefox-esr153 Uplift Approval Request

  • User impact if declined/Reason for urgency: Trivial-ish compat fix.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: yes
  • Steps to reproduce for manual QE testing: comment 0
  • Risk associated with taking this patch: low
  • Explanation of risk level: stops making some properties apply to ::placeholder as per spec.
  • String changes made/needed?: none
  • Is Android affected?: yes
Flags: needinfo?(emilio)
QA Whiteboard: [uplift][qa-ver-needed-c155/b154]

I was able to reproduce the issue on Ubuntu 24.04 using FF build 154.0b3 and steps from description.
Verified as fixed on Ubuntu 24.04/Win11x64 using FF build 155.0a1(20260728095222). Waiting for next beta.

Attachment #9617231 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9617232 - Flags: approval-mozilla-esr153? → approval-mozilla-esr153+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: