Open Bug 1904881 Opened 2 years ago Updated 2 months ago

Remove button "X" is misaligned when comparing accounts on td.com

Categories

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

Firefox 129
Desktop
Windows 10

Tracking

(Webcompat Priority:P3, Webcompat Score:1, firefox127 affected, firefox129 affected, firefox158 affected)

Webcompat Priority P3
Webcompat Score 1
Tracking Status
firefox127 --- affected
firefox129 --- affected
firefox158 --- affected

People

(Reporter: ctanase, Unassigned)

References

()

Details

(Keywords: webcompat:needs-diagnosis, webcompat:platform-bug, webcompat:site-report, Whiteboard: [webcompat:core])

User Story

platform:windows,mac,linux
impact:minor-visual
configuration:general
affects:all
diagnosis-team:layout
user-impact-score:10

Attachments

(2 files)

Attached image FF vs Chrome.png —

Environment:
Operating system: Windows 10
Firefox version: Nightly 129.0a1 (2024-06-25)

Steps to reproduce:

  1. Go to https://www.td.com/ca/en/personal-banking/products/bank-accounts/chequing-accounts/student-chequing-account
  2. Click on the checkbox "Compare Account".
  3. Observe the "X" button displayed for the "TD Student Chequing Account" in the drop-up menu.

Expected Behavior:
The "X" button is displayed on the top right corner of the account icon.

Actual Behavior:
The "X" button is misaligned.

Notes:

  1. Screenshot attached
  2. Reproducible regardless of the ETP status
  3. Reproducible on Firefox Release as well
  4. Not reproducible on Chrome
  5. Issue found during WebCompat team [Top100] websites testing
Severity: -- → S4
User Story: (updated)
Priority: -- → P3

This is a positioning issue with abspos content inside of a display:inline; position:relative; container. The page has an element with these styles, which then serves as a containing block for an abspos child with auto insets (the "x" icon):

.cmp-compare-sticky-drawer__remove-prod-btn {
	display: inline;
	position: relative;
	top: -20px;
	left: -10px;
	height: 36px;
	width: 36px;
}

...and we end up positioning the abspos child's placeholder-frame incorrectly.

I think this is essentially a version of bug 489100.

Webcompat Priority: --- → P3
Webcompat Score: --- → 2
Webcompat Score: 2 → 1
User Story: (updated)
Whiteboard: [webcompat:core]

When setting layout.abspos.fragment-aware-inline-cb.enabled=true, the "X" button moves up a bit, but it is still not at the top right corner like Google Chrome.

Attachment #9589917 - Attachment filename: Screenshot (with bug 489100) → Screenshot (with bug 489100).png
Attachment #9589917 - Attachment mime type: application/octet-stream → image/png

The issue is still reproducible.

Tested with:

Browser / Version: Firefox Nightly 158.0a1 (2026-09-13) (64-bit)
Operating System: Windows 10 PRO x64

User Story: (updated)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: