On 2013-08-08 01:21 (GMT-0700) keith_w composed:
Felix Miata composed:
to support-seamon.
On 2013-08-05 11:56 (GMT-0400) Ed Mullen composed:
treechildren {
font-size: 12pt !important;
line-height: 1pt !important;
}
Note that for more than a year, 1pt equals 1px in all Gecko browsers, to
match IE and WebKit insanity.
To help me understand, may I assume "1pt" means '1 point' and "1px" means
1 pixel? This is how I learn. I read and then Google it for meaning.
pt and px are CSS lengths used for specifying font-size and line-height, but
note for line height there is a unitless option that makes much more sense in
practical application to accessible web design..
What I don't understand is why you call it "...IE and WebKit insanity."
I think a line height of 1:1 is ideal for most things.
Please explain.
There used to be two kinds of px (1: device; 2: CSS) and one kind of pt
(physical). IE and WebKit introduced a second kind of pt (irrational), later
adopted as default by Gecko. The irrational pt is a 1:1 ratio to a CSS pixel,
which is an angular size that bears no predictable relationship to a device
pixel or in any comprehensible way to a physical size unit such as an inch or
a cm. Without a physical unit, as is the case now for the vast majority of
browser installations, a web page creator has no way to create an object that
renders in a desired physical size except by chance. When there was a
physical pt available in all browsers (and in, and cm, and mm), it was
possible for users with accurately configured display environments to have
objects render at accurate physical sizes. This is now possible only using:
1-old browser versions
2-Konqueror with its KHTML rendering option selected
3-Geckos, via a vendor-specific CSS unit, the mozmm.
e.g. authors can can specify 'line-height: 4.2333mozmm', and the line height
will physically measure 12pt (4.2333mm) on a display where the environment's
pixel density matches the display device's physical pixel density. To have
these match is very uncommon in Windows and Mac environments, but is
generally not too difficult to achieve on systems using Xorg or XFree86 (e.g.
Linux).
Line-height equal to less than font-size is usually a horrible idea.
Line-height 1 isn't necessarily bad, depending on context. 1 means 1:1, or
100%, same as 1em, equal to font-size.
The line-height declared above equals 1/12 of the declared font size, which
if actually applied would cause each line to overlap roughly up to 11 other
lines, resulting in an unintelligible mess.
A line height of 1 is less than normal, resulting in lines with very little
vertical space between each other, and ascenders and descenders occasionally
eliminating space between lines. Normal line height is part of each
individual font's design, typically near 1.2 times the glyph box's height.
--
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)
Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!
Felix Miata *** http://fm.no-ip.com/
_______________________________________________
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey