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

Arron,

[RC6]
http://test.csswg.org/suites/css2.1/20110323/html4/containing-block-011.htm

[nightly-unstable]
http://test.csswg.org/suites/css2.1/nightly-unstable/html4/containing-block-011.htm

[RC6]
http://test.csswg.org/suites/css2.1/20110323/html4/containing-block-013.htm

[nightly-unstable]
http://test.csswg.org/suites/css2.1/nightly-unstable/html4/containing-block-013.htm

[RC6]
http://test.csswg.org/suites/css2.1/20110323/html4/containing-block-015.htm

[nightly-unstable]
http://test.csswg.org/suites/css2.1/nightly-unstable/html4/containing-block-015.htm


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.
"
http://www.w3.org/TR/CSS21/visudet.html#containing-block-details

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
like:

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

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

CSS 2.1 Test suite RC6, March 23rd 2011:
http://test.csswg.org/suites/css2.1/20110323/html4/toc.html

CSS 2.1 test suite harness:
http://test.csswg.org/harness/

Contributing to to CSS 2.1 test suite:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/web-authors-contributions-css21-testsuite.html

Received on Thursday, 8 March 2012 04:42:49 UTC