Philippe Wittenbergh wrote:
> Georg wrote:
> 
>> Have a look at this page across browser-land... 
>> <http://www.gunlaug.no/tos/moa_17.html> ...especially in Moz/Fx, 
>> and do some font-resizing.
> 
> What do you consider 'wrong' in Gecko's behaviour ? (Safari/WebKit 
> and Konqueror have exactly the same behaviour)

Nothing wrong with how any of them calculate the size of an 'ex' - to
begin with.
However, unless my Firefox (2.0 0.7) is an extremely buggy exception, I
find its "stepped 'ex'" behavior during font-resizing a bit disappointing.

I'm observing, amongst other things, that 20ex "Georgia" can be either
the same, slightly larger, or slightly smaller than 10em "Georgia",
depending on degree of resizing.
To me this indicates that 'ex' isn't calculated reliably in that
browser. The "stepping" seems to be even more coarse when other
font-families are used.

If an 'ex' actually _is_ less than half the size of an 'em' for a
particular font, then I would at least expect that to be "true"
regardless of actual font size. In my Firefox that is "false".

> All 3 browsers do exactly what the spec says, unlike IE/Opera which 
> always treat 1em=2ex without checking the information provided by the
>  fonts.

Both methods are noted as "acceptable" in the specs I've read so far,
but I may have missed a line somewhere. The regulation of free-ranging
browsers by means of an open-ended set of specs, turns reading of specs
into an academic exercise more than a practical one.

It is hard to figure out which "paved cow-path" or standard-branch one
should follow since there are so many, and the way it looks now there
will probably be even more "paved cow-paths" to choose amongst in the
future. Plenty of room for failure, and all according to "specs".

> Of course, if one were to use ex-units for width or height, one has 
> to use this consistently, and not mixing e.g. em and ex.

The preferred behavior would be what 'font-size-adjust' was supposed to
be all about. With more or less identical _and_ fine-grained methods for
actual calculation of 'ex' vs. font-family across browser-land, we could
use, and mix, 'ex' and 'em' freely for font-sizing and element-sizing.
Would be quite useful.

As it stands now I wouldn't consider 'ex' to be a practical alternative
to 'ex' for element-sizing - in any browser under any circumstances.

regards
        Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to