Citi login page search icon is misaligned
Categories
(Core :: Layout: Block and Inline, defect, P3)
Tracking
()
People
(Reporter: yoasif, Unassigned)
References
Details
(Keywords: nightly-community, site-compat)
Attachments
(4 files, 1 obsolete file)
Steps to reproduce:
- 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/
| Reporter | ||
Comment 1•7 years ago
|
||
| Reporter | ||
Updated•7 years ago
|
| Reporter | ||
Updated•7 years ago
|
Comment 2•7 years ago
|
||
| Comment hidden (obsolete) |
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
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.
Comment 6•7 years ago
|
||
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.
Comment 7•7 years ago
|
||
(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.)
Updated•7 years ago
|
Comment 8•7 years ago
|
||
This smells a lot like one of the bugs bug 255139 would fix.
Updated•4 years ago
|
Description
•