Skip to content

www.rediff.com – Text in misaligned on “Search” field on “Labs” page #7480

Open

Description

URL: http://labs.rediff.com/chhattisgarh-assembly-elections-2013
Browser / Version: Firefox Mobile Nightly 56.0a1 (2017-06-14)
Operating System: LG G5 (Android 7.0) - Resolution 1440 x 2560 pixels (~554 ppi pixel density)
Problem type: Layout is messed up

Steps to Reproduce

  1. Navigate to: http://labs.rediff.com/chhattisgarh-assembly-elections-2013
  2. Type in a string on the “Search” bar under “Share” buttons.
  3. Observe text alignment.

Expected Behavior:
Text is centered.

Actual Behavior:
Text is misaligned (bottom).

Note:

  1. Reproducible on Firefox 53.0.2 Release.
  2. Not reproducible on Chrome (Mobile) 58.0.3029.83.
  3. Screenshot attached.

Watchers:
@softvision-sergiulogigan
@softvision-oana-arbuzov

sv; country: in

Screenshot Description

From webcompat.com with ❤️

Activity

  1. changed the title [-]labs.rediff.com - layout is messed up[/-] [+]www.rediff.com – Text in misaligned on “Search” field on “Labs” page[/+] on Jun 15, 2017
  2. karlcow commented on Jun 20, 2017

    @karlcow
    Member
    <div class="floatL" style="*margin-top:-5px;border:1px solid #000000;height:23px;padding: 0px;border-radius: 5px;width:266px;">
    <input id="txt" style="border:none;width:238px;position:relative;font:normal 11px arial;padding-left:5px;" autocomplete="off" type="text">
    <img src="http://imworld.rediff.com/sntmtr_content/images/search123_img.png" height="15">
    
    <div id="suggest" style="visibility:hidden;border:1px solid #000;margin-top:2px;font:normal 14px arial;">
    </div>
    </div>

    by putting an outline we can see the relative alignment. of the two nested boxes: the div and the input
    capture d ecran 2017-06-20 a 13 58 44

    One difference I see in between the two browsers is the line-height doesn't have the same value:

    • firefox gets 13.3667px
    • safari gets 12px

    it seems to be inherited from font: …

    element {
    	border: none;
    	width: 238px;
    	position: relative;
    	font: normal 11px arial;
    	padding-left: 5px;
    	outline: 1px solid red;
    }

    capture d ecran 2017-06-20 a 14 06 38

    Though changing the line-height to be the same doesn't change the vertical alignment.
    So that's not it.
    Reducing the two to their minimum and increasing the height.

    capture d ecran 2017-06-20 a 14 20 04

    They behave basically the same, there is just a very minor difference.

  3. karlcow commented on Jun 20, 2017

    @karlcow
    Member

    not sure it's worth trying to fix. but we could tell them occasionally if we contact them for other things.

  4. karlcow commented on Sep 1, 2017

    @karlcow
    Member

    a vertical-align: middle makes it better.

  5. added this to the contactready milestone on Oct 30, 2017
  6. adamopenweb commented on Apr 9, 2018

    @adamopenweb
    Collaborator

    Reaching out via site contact form.

  7. added
    engine-gecko
    on Apr 30, 2019
  8. added
    severity-minor
    on Aug 16, 2019
  9. cipriansv commented on Aug 16, 2019

    @cipriansv

    I retested the issue and it is still reproducible on my side.

    image

    Tested with:
    Browser / Version: Firefox Nightly 68.1a1 (2019-08-13), Firefox Preview 1.2.0 (Build #12181645)
    Operating System: Huawei P10 (Android 8.0) - 1080 x 1920 pixels (~432 ppi pixel density)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    browser-firefox-mobileengine-geckoseverity-minor

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions