W3C home > Mailing lists > Public > www-style@w3.org > September 2010

[CSS 2.1] [Section 10.3.x] Testcases where percentage intrinsic width cannot be resolved

From: Gérard Talbot <www-style@gtalbot.org>
Date: Thu, 23 Sep 2010 23:43:11 -0700
Message-ID: <159c20b18e025c9a5c9f450fb5551ef5.squirrel@cp3.shieldhost.com>
To: "www-style@w3.org list" <www-style@w3.org>
Hello all,

I wish to have your feedback, comments or explanations on 4 testcases.

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

Why should the blue square be as wide as the orange square?

Why the blue square could not be half the width of the orange square?

Right now, Chrome 6.0.472.62 render this testcase differently from Firefox
3.6.10 and from Opera 10.62. I do not see anything in the spec which can
decisively state which rendering is correct. I even think that such
testcase should be removed as it could be rendered both ways (depending on
algorithm chosen). Am I wrong?


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

Why should the blue square be as wide as the orange square?

Why the blue square could not be instead half the width of the orange square?

3-
http://test.csswg.org/suites/css2.1/20100917/html4/float-replaced-width-012.htm

Same questions here too.

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

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 is invalid, incorrect and should be removed.
Am I wrong?
(There are 11 other testcases like this absolute-replaced-width-007.htm in
section 10.3.8 of CSS 2.1 test suite)

regards, Gérard
-- 
CSS 2.1 Test suite RC1 (September 17th 2010)
http://test.csswg.org/suites/css2.1/20100917/html4/toc.html

Contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/

Web authors' contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/web-authors-contributions-css21-testsuite.html
Received on Friday, 24 September 2010 06:43:45 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:31 GMT