https://bugzilla.wikimedia.org/show_bug.cgi?id=17297

--- Comment #10 from Philippe Verdy <[email protected]> 2012-05-23 20:43:37 
UTC ---
Re Comment #5: I forgot to reply to your demand. Technically yes, you could use
unitless line-height in inline elements, but there will always be a problem if
ever the line contains "big" elements, because it won't affect the line-height
as it should (internally it just sets a bigger font size, but this does not
affect the line-height, unless the outer elements was was with a proportional
unit-less line-height.

The same will be true if there are "small" elements : the line-height will not
be reduced as it should when the small paragraph spans several lines, so there
will beextra blanks.

More generally, it is best or accessibility to allow the line-height being
adjusted to fit exactly the computed maximum line-height of all elements in the
same rendered line, notably because it is really difficult to predict the
effective page margins and how many lines will be rendered for the same
paragraph.

So unless we use fixed fonts, and we can be sure that those fonts will be
available in all renderers (think not just about PCs, but as well about
smartphones and about multiple OSes), and that these fonts contain all the
necessary glyphs without using fallbacks (think about font versions, depending
often about the OS versions),
fixing the line-height absolutely (which may look better for equalizing all
line-heights in the same paragraph, when there are multiple font sizes, or
there are other features such as subscripts and superscripts) will result in
poor rendering or problems to get something that is readable.
I see absolutely no use case, on the web, for using line-heights with a unit,
unless you really want an absolutely fixed layout.

For Wikimedia sites, as well as most wikis, the default style should then never
use any unit when setting the line-height in the stylesheet. So unitless
line-height should be used everywhere (both at the inline elements or at block
elements). This is even more critical for non-Latin scripts, where there's a
very wide variation between fonts usable across devices and OSes, and in every
multilingual sites (where multiple scripts are used), including the English
Wikipedia (that frequently cites texts in various non-Latin scripts.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to