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.

In
http://test.csswg.org/suites/css2.1/20101001/html4/absolute-non-replaced-width-010.htm
the width is 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 (...)
   1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the
width is shrink-to-fit. Then solve for 'left'
"
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
and this is precisely what is happening in
absolute-non-replaced-width-010.htm

Same thing with
http://test.csswg.org/suites/css2.1/20101001/html4/absolute-non-replaced-width-013.htm
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'
"
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width


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

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 6 October 2010 19:39:22 GMT