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

RC1: absolute-replaced-width-007 , absolute-replaced-width-014 and absolute-replaced-width-021

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Thu, 23 Sep 2010 22:46:09 -0700
Message-ID: <933bac1af2efca5f18058c3ba087e3ef.squirrel@cp3.shieldhost.com>
To: "public-css-testsuite@w3.org" <public-css-testsuite@w3.org>
Hello all,

http://test.csswg.org/suites/css2.1/20100917/html4/absolute-replaced-width-007.htm

<title> is: Absolute replaced elements and 'auto' specified for
'margin-left', 'margin-right' and percentage intrinsic width that cannot
be resolved

Assert says:  Percentage intrinsic widths are evaluated against the
containing block's width unless the containing block width depends on
the element.

Spec quotes:

"lengths expressed as percentages [for the height or width HTML
attribute for <img>] are based on the horizontal or vertical space
currently available, not on the natural size of the image, object, or
applet.
"
http://www.w3.org/TR/html4/struct/objects.html#adef-width-IMG

"Percentage intrinsic widths are first evaluated with respect to the
containing block's width, if that width does not itself depend on the
replaced element's width. If it does, then the resulting layout is
undefined in CSS 2.1."
http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width

I believe that such test
http://test.csswg.org/suites/css2.1/20100917/html4/absolute-replaced-width-007.htm
is invalid, incorrect.

We have rejected other similar testcases for the same reason:

http://test.csswg.org/suites/css2.1/20100701/html4/floats-148.htm

http://test.csswg.org/suites/css2.1/20100701/html4/blocks-023.htm

http://test.csswg.org/suites/css2.1/20100701/html4/blocks-024.htm

There are also 2 other testcases with, for practical reasons, the same
relevant code:

http://test.csswg.org/suites/css2.1/20100917/html4/absolute-replaced-width-014.htm

http://test.csswg.org/suites/css2.1/20100917/html4/absolute-replaced-width-021.htm

and they also should be rejected IMO.

regards, Gérard
-- 
Contributions to the CSS 2.1 test suite:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/

CSS 2.1 test suite (RC1; September 17th 2010):
http://test.csswg.org/suites/css2.1/20100917/html4/toc.html

CSS 2.1 test suite contributors:
http://test.csswg.org/source/contributors/
Received on Friday, 24 September 2010 05:46:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 24 September 2010 05:46:54 GMT