Re: Dimensions better than unitless numbers for future CSS specs

Etan Wexler wrote:
> 
>> I've also seen discussion of allowing unitless numbers on 
>> 'word-spacing' in CSS3. Currently, 'word-spacing' adds a specific 
>> amount to the normal spacing (for example, 'word-spacing: 0.5em'). 
>> 'Word-spacing: 1.5' could mean that the word spacing is increased to 
>> 1.5 times its normal value.
> 
> We don’t need unitless numbers to effect a multiplication of intrinsic 
> or normal values. A unit, say, 'norm', could give the same results. We 
> can specify that 'norm' dimensions compute to themselves, yielding good 
> results for inheritance in situations like the following example.

I think multipliers are an appropriate use of unitless numbers. IIRC,
all other units compute to an absolute measure and then inherit, so
such multipliers are inherently different from units anyway.

~fantasai

Received on Thursday, 7 July 2005 09:58:00 UTC