Closed Bug 1454147 Opened 7 years ago Closed 7 years ago

Search box placeholder text incorrectly aligned for te.wikipedia.org

Categories

(Core :: Layout: Text and Fonts, defect)

59 Branch
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: arjunaraoc, Unassigned)

References

()

Details

Attachments

(4 files)

Search box placeholder text incorrectly aligned for te.wikipedia.org. (Screenshot enclosed). The problem not observed on Chrome.(Screenshot enclosed). This type of misalignment of tool bar is observed when editing page as well
Chrome screenshot enclosed.
A bug filed with mediawiki for the same issue, which could be of help to resolve is given here. https://bugzilla.mozilla.org/show_bug.cgi?id=1454147
(In reply to arjuna rao chavala from comment #3) > A bug filed with mediawiki for the same issue, which could be of help to > resolve is given here. https://bugzilla.mozilla.org/show_bug.cgi?id=1454147 You have provided a link to this bug instead of the mediawiki bug you mentioned. Could you post that link instead?
Component: General → Layout: Text
Flags: needinfo?(arjunaraoc)
Product: Firefox → Core
(In reply to Panos Astithas [:past] (please ni?) from comment #4) > (In reply to arjuna rao chavala from comment #3) > > A bug filed with mediawiki for the same issue, which could be of help to > > resolve is given here. https://bugzilla.mozilla.org/show_bug.cgi?id=1454147 > > You have provided a link to this bug instead of the mediawiki bug you > mentioned. Could you post that link instead? Sorry. Here it is. https://phabricator.wikimedia.org/T192247
I cannot reproduce this on macOS. It's probably specific to Linux? And it is also possible specific to some font used in that platform...
I tried different fonts and found the incorrect rendering. It seems specific to Ubuntu version of firefox. Any tips to debug could help, as I hate to have an unpleasant browsing experience with Firefox.
Flags: needinfo?(arjunaraoc)
OK, I can reproduce this on Ubuntu... The issue seems to be that the <input> element is shifted downward from where it should be. Looking at the styles I cannot make sense of how this happens... Everything looks so normal. I tried to change the display of the <input> to block instead, and that fixes this problem. Other values like inline or inline-block would have this issue. That probably means it is an issue in vertical alignment code in line layout.
Attached file reduced testcase
This can be reproduced on Windows and Ubuntu with this testcase and latest Lohit Telugu font.
Attached file Lohit-Telugu.ttf
This is the font can be used with the testcase to reproduce this issue. It is downloaded from https://releases.pagure.org/lohit/lohit-telugu-ttf-2.5.5.tar.gz
That Lohit Telugu font has some unusually large metrics in the <hhea> table: <hhea> <tableVersion value="0x00010000"/> <ascent value="999"/> <descent value="-674"/> <lineGap value="200"/> This is with a unitsPerEm of 1024, so according to these figures, its "expected" line height would be about 1.83em, which is much larger than most fonts (around 1.1-1.2em would be more typical). The alternative (preferred) "typographic" metrics in the OS/2 table are even more extreme: <OS_2> ... <sTypoAscender value="1617"/> <sTypoDescender value="-784"/> <sTypoLineGap value="20"/> implying an expected default line height of around 2.36em, for a browser that uses these metrics as the basis for its calculations. (IIRC, Firefox behavior may currently differ between platforms, for various legacy reasons. But either way, the font's extremely large line-spacing metrics are probably at the root of this.)
The problem disappeared somehow on my system. Will update If I notice it again.
Thanks, resolving this as WORKSFORME for now. It's possible this changed recently as a result of bug 1406552.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
I find the version is 60.0
For future reference, this only affected Firefox 59. Firefox 58 and 60 were okay.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: