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.


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?


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?


Same questions here too.


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

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

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)

Contributions to CSS 2.1 test suite

Web authors' contributions to CSS 2.1 test suite
Received on Friday, 24 September 2010 06:43:45 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 11 February 2015 12:34:42 UTC