Open Bug 1526738 Opened 7 years ago Updated 4 years ago

Citi login page search icon is misaligned

Categories

(Core :: Layout: Block and Inline, defect, P3)

defect

Tracking

()

Tracking Status
firefox65 --- affected
firefox66 --- affected
firefox67 --- affected

People

(Reporter: yoasif, Unassigned)

References

Details

(Keywords: nightly-community, site-compat)

Attachments

(4 files, 1 obsolete file)

Steps to reproduce:

  1. Navigate to: https://online.citi.com/US/login.do

What happens:

The magnifying glass that appears alongside the search text in the area with the blue background and to the right of the Citi logo is too high.

Expected result:

As rendered in Chromium - the magnifying glass is vertically aligned with the search text.

See snippet: http://jsfiddle.net/tfw75c9e/

Attached image citi-good-chromium.png —
Has STR: --- → yes
Keywords: site-compat
Attachment #9042809 - Attachment is obsolete: true

It seems that the problem is on the #I_16 element which has the wrong position.

Changing its position value to either absolute or static would give the identical result between Firefox and Chrome, while using position: relative somehow gives the wrong result. Not sure how relative position is calculated here.

Component: Layout → Layout: Block and Inline

It's something to do with the fact that #I_16 is an empty, inline-level containing block for an absolutely positioned child.

You can fix the layout in Firefox by doing either of these minimal things:

  • adding a border to #I_16 (e.g. "border: 1px solid lime")
  • give #I_16 "vertical-align:top" or "vertical-align:bottom"

These both "snap" that element to the expected position.

(In other words: I don't think that the problem is the relative position being calculated wrong. I suspect it's rather an issue with the baseline-aligned position of the empty inline-level element being calculated wrong.)

Priority: -- → P3

This smells a lot like one of the bugs bug 255139 would fix.

Depends on: 255139
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: