Re: Questions about length unit tests

On 11/1/07, fantasai <fantasai.lists@inkedblade.net> wrote:
> Dan Kennedy wrote:
> > Hi,
> >
> > I'm using an html4 build of the test suite to test Hv3, the
> > tcl/tk web browser. Have been able to find and fix many bugs
> > already. Thanks!
> >
> > Checked out a fresh copy today. First question is about the test:
> >
> >   t040302-c61-ex-len-00-b-a.htm
> >
> > what encoding should the UA assume this test uses?
> >
> > For me, it only works with is0-8859-1, not utf-8. The problem is
> > that in the Ahem font, the byte sequence 0xC3, 0x89 produces a single
> > glyph with a height of about 0.8ex, not the 1ex required. With
> > iso-8859-1, I get two glyphs, each 1ex high (test passes).
>
> UTF-8. If you force a different font, you should see a capital E with
> an acute accent followed by a blue box. The source of that test
>    http://dev.w3.org/CSS/CSS2.1-test-suite/raw-tests/css1tests/css1test61c.xml
> uses the &#xC9; character entity, which should be Eacute no matter which
> encoding is used for the file transfer.
>
> According to the documentation, the Ahem font has an x-height of 0.8em:
>    http://www.hixie.ch/resources/fonts/
> The test is probably assuming the browser uses that information.

Ah! That explains both problems. Hv3 is measuring the width of
the 'x' glyph and assuming the height is similar. I guess this doesn't
always work as well as I had hoped...

Thanks very much for the help.

Dan.

Received on Thursday, 1 November 2007 09:04:45 UTC