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

> 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.

David,

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
testcases.

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:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/

CSS 2.1 test suite (RC2; October 1st 2010):
http://test.csswg.org/suites/css2.1/20101001/html4/toc.html

CSS 2.1 test suite contributors:
http://test.csswg.org/source/contributors/

Received on Thursday, 14 October 2010 18:20:44 UTC