Gérard Talbot wrote:
> > I have a simple question on font-size-adjust. [1]
> > According to the spec. font-size-adjust can have ‘none’ or <number>
> > for its value.
> > BTW what is expected to look like where font-size-adjust is ‘0’? I
> > checked Gecko(which is the only vendor supporting for the property
> > now) treated it as ‘none’.
> > Does it make sense? As my reading, font-size-adjust represents an
> > aspect value (x-height / font-size) of a font.
> > So ‘0’ might mean x-height is 0 or equivalent very small value here.
> > Thus It should be same effect with 'font-size = 0px’
>
> Yes, it should be same effect with 'font-size = 0px’. I agree with your
> reasoning. The spec editor, John Daggett, should probably be notified of
> this. 0 would have to mean a 0px font-size.
The existing wording already covers the font-size-adjust: 0 case. The Gecko
implementation does not handle this case correctly.
> Negative values are illegal and ignored.
This is the only thing that I think requires additional spec wording:
Negative values have the same effect as specifying 'none'.
That is to say, they are parsed and computed but will not affect the
used font size.
> Percentage values are ignored.
> 'auto' value must be ignored.
Both of these are invalid given the existing definition. They should not
parse if used.
Cheers,
John Daggett
Mozilla Japan