W3C home > Mailing lists > Public > public-css-testsuite@w3.org > October 2010

Re: c43-center-000 assumes line-height 'normal' == '1'

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Thu, 14 Oct 2010 11:20:09 -0700
Message-ID: <f881800415c6db70cfcd7f1e4fe16b67.squirrel@cp3.shieldhost.com>
To: "L. David Baron" <dbaron@dbaron.org>
Cc: "public-css-testsuite@w3.org" <public-css-testsuite@w3.org>

> These tests:
> http://test.csswg.org/suites/css2.1/20101001/xhtml1/c43-center-000.xht
> http://test.csswg.org/suites/css2.1/20101001/html4/c43-center-000.htm
> assume that 'line-height: normal' is the same as 'line-height: 1',
> which is not required to be the case.
> I suggest replacing:
>    .c     { text-align: center; font: 15px Ahem; color: blue; }
> with:
>    .c     { text-align: center; font: 15px/1.0 Ahem; color: blue; }
> to make the test valid.


Your suggestion is good and spot the problem with the testcase.

Personally, I would break, split that testcase into 3 smaller testcases,
then use a bigger red and blue image squares for each of the smaller

Why Ian Hickson needed to declare font-size: 10px for the div is not
explained, addressed anywhere in the testcase. I am not sure but I think
it has to do with background-image being positioned in the padding-box
(and top-half-leading), not in content-box.

This is a testcase where, despite your suggestion, web authors could
still not understand the tescase.

regards, Gérard
Contributions to the CSS 2.1 test suite:

CSS 2.1 test suite (RC2; October 1st 2010):

CSS 2.1 test suite contributors:
Received on Thursday, 14 October 2010 18:20:44 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:13:21 UTC