W3C home > Mailing lists > Public > public-css-testsuite@w3.org > March 2012

[RC6] containing-block-011, 013, 015 incorrect

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Wed, 7 Mar 2012 23:42:19 -0500
Message-ID: <69aa12bd9c29c4d586770946f732bc72.squirrel@ed-sh-cp3.entirelydigital.com>
To: "Arron Eicholz" <arron.eicholz@microsoft.com>
Cc: "Public CSS test suite mailing list" <public-css-testsuite@w3.org>







I think all these 3 tests are not testing what they wanted to test
originally, initially.

The innermost span is absolutely positioned in all 3 tests. So, we start
from here...

4. If the element has 'position: absolute', the containing block is
established by the nearest ancestor with a 'position' of 'absolute',
'relative' or 'fixed', in the following way:

  1. In the case that the ancestor is an inline element, the containing
block is the bounding box around the padding boxes of the first and
the last inline boxes generated for that element.

The problem is that the wrapping span (the parent of the inner span),
which is span#span1, is not positioned, therefore can not be considered
a positioned ancestor. So, the nearest positioned ancestor in all 3
tests is the wrapping div which is relatively positioned (in 011),
absolutely positioned (in 013) and fixed-positioned (in 015). So, in all
3 tests, bullet 4, sub-bullet 2 is applied, is actually really tested.

The predicted rendered layout of the 3 tests are correct but the
metadata, test title and the design of the test are not testing bullet
4, sub-bullet 1 of section 10.1

Immediately right now, I do not have alternative proposals/replacements
for those 3 tests.

I also think sub-bullet 1 should be saying rather and more precisely:

  1. In case such nearest positioned ancestor is an inline element, then
the containing block is the bounding box around the padding boxes of
the first and the last inline boxes generated for that element.

and to furthermore avoid confusion or interpretation, sub-bullet 2
should be reusing the same manner of describing all this. Something

  2. In case such nearest positioned ancestor is a block container, then
the containing block is formed by the padding edge of such block

Contributions to the CSS 2.1 test suite:

CSS 2.1 Test suite RC6, March 23rd 2011:

CSS 2.1 test suite harness:

Contributing to to CSS 2.1 test suite:
Received on Thursday, 8 March 2012 04:42:49 UTC

This archive was generated by hypermail 2.4.0 : Friday, 20 January 2023 19:58:18 UTC