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

Re: Incorrect assert in absolute-non-replaced-width tests

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Wed, 6 Oct 2010 12:38:40 -0700
Message-ID: <3b1dc17a94f9fe4997782173cd9f5758.squirrel@cp3.shieldhost.com>
To: "Øyvind Stenhaug" <oyvinds@opera.com>
Cc: "public-css-testsuite@w3.org" <public-css-testsuite@w3.org>

> The asserts of these tests are incorrect:
> http://test.csswg.org/suites/css2.1/20101001/html4/absolute-non-replaced-width-003.htm

If position: absolute is changed to position: static in that
absolute-non-replaced-width-003.htm, then the testcase still passes. So,
it is definitely not the best testcase imaginable.

> http://test.csswg.org/suites/css2.1/20101001/html4/absolute-non-replaced-width-004.htm
> http://test.csswg.org/suites/css2.1/20101001/html4/absolute-non-replaced-width-005.htm
> http://test.csswg.org/suites/css2.1/20101001/html4/absolute-non-replaced-width-006.htm
> http://test.csswg.org/suites/css2.1/20101001/html4/absolute-non-replaced-width-007.htm

I agree that the mention of "the width becomes shrink-to-fit" in the
assert of those testcases is incorrect.

> http://test.csswg.org/suites/css2.1/20101001/html4/absolute-non-replaced-width-008.htm
> http://test.csswg.org/suites/css2.1/20101001/html4/absolute-non-replaced-width-009.htm

Those  absolute-non-replaced-width-008.htm and
absolute-non-replaced-width-009.htm are wrong, incorrect.

> Width is not shrink-to-fit.

the width is given by shrink-to-fit but the assert makes no mention of

set 'auto' values for 'margin-left' and 'margin-right' to 0, and (...)
   1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the
width is shrink-to-fit. Then solve for 'left'
and this is precisely what is happening in

Same thing with
the width must be given by shrink-to-fit but the assert makes no mention
of this.

set 'auto' values for 'margin-left' and 'margin-right' to 0, and (...)
   3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the
width is shrink-to-fit . Then solve for 'right'

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 Wednesday, 6 October 2010 19:39:16 UTC

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