Last modified: 2014-04-11 09:55:45 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T43442, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 41442 - Superscript reference numbers cause increase in line height with devanagari text
Superscript reference numbers cause increase in line height with devanagari text
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Cite (Other open bugs)
unspecified
All All
: Low normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: i18n
Depends on:
Blocks: 41348
  Show dependency treegraph
 
Reported: 2012-10-26 23:45 UTC by Siddhartha Ghai
Modified: 2014-04-11 09:55 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
the problem as seen in google chrome (120.93 KB, image/png)
2012-10-26 23:45 UTC, Siddhartha Ghai
Details

Description Siddhartha Ghai 2012-10-26 23:45:01 UTC
Created attachment 11251 [details]
the problem as seen in google chrome

On hindi wikipedia, wherever a reference is present in a line, that line seems to be slightly higher than lines without references, i.e the superscript seems to increase line height slightly.

Example: see http://hi.wikipedia.org/s/43g

Though not a functional problem, this is annoying. Also, it seems to be happening cross-browser, and does not seem to depend upon whether WebFonts is active or not.

I have seen this in 22.0.1229.94 m, firefox 15.0.1, opera 12.01, IE8 and safari 5.0.3 with Windows 7 Home Basic X64.
Comment 1 Marius Hoch 2012-10-26 23:50:03 UTC
Setting sup.references line-height to 1 makes it less worse, but the only way I could get it fully resolved was by adding:
sup.reference { position: absolute; line-height: 1; }
which probably isn't a good solution.
Comment 2 Siddhartha Ghai 2012-10-27 00:28:45 UTC
(In reply to comment #1)
> Setting sup.references line-height to 1 makes it less worse, but the only way I
> could get it fully resolved was by adding:
> sup.reference { position: absolute; line-height: 1; }
> which probably isn't a good solution.

I've added sup.reference {line-height:1;} to the Common.css for now.

http://hi.wikipedia.org/w/index.php?title=%E0%A4%AE%E0%A5%80%E0%A4%A1%E0%A4%BF%E0%A4%AF%E0%A4%BE%E0%A4%B5%E0%A4%BF%E0%A4%95%E0%A4%BF%3ACommon.css&diff=1943654&oldid=1922969
Comment 3 Bartosz Dziewoński 2014-04-06 11:11:17 UTC
Is this still a problem? We improved the line-height handling somewhat per bug 49965.
Comment 4 Siddhartha Ghai 2014-04-11 09:55:45 UTC
(In reply to Bartosz Dziewoński from comment #3)
> Is this still a problem? We improved the line-height handling somewhat per
> bug 49965.

Tested at https://hi.wikipedia.org/wiki/स्लोवाकिया in google chrome Version 33.0.1750.154 m in Windows 7 X64

It seems the problem is fixed for the plain text (article content). Even adding position:aboslute doesn't seem to make a difference there.

However, in the infobox, in the line:

 - Date	1 जनवरी, 1993[1]

adding position:absolute to sup.reference styles using the chrome dev tools does seem to slightly decrease the line-height. Changing the line-height:1 to line-height:0 also seems to slightly decrease the line-height, but again only in the infobox.

Also, per bug 49965 , can sup.reference {line-height:1;} be removed from the common.css which was added per comment 2 ?

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links