- From: Gérard Talbot <css21testsuite@gtalbot.org>
- Date: Sat, 27 Jul 2013 22:06:43 -0400
- To: "Hĺkon Wium Lie" <howcome@opera.com>
- Cc: "Public css-testsuite mailing list" <public-css-testsuite@w3.org>
Hello, [src] http://test.csswg.org/source/contributors/opera/submitted/multicol/multicol-containing-001.xht The rules for determining the containing block are given in §10.1 [1] and state that nearest positioned ancestor is going to act as containing block for an abs. pos. element, otherwise the initial containing block is going to act as such. And this is the case here. The containing block for the red abs. pos. span is the initial containing block. And so, the 2 short red stripes should be positioned out of view, just outside the top edge of viewport. The problem with the test is this: if it is not possible to set 'position: relative' to a single column box, then it is not possible to really and truly verify that "column boxes do not establish containing blocks for elements with ‘position: fixed’ or ‘position: absolute’. So, I think it's not possible to appropriately check the assertion. I approved the test but, in all fairness, the test goal is not testable, not verifiable. And, on the other hand, if the multi-colum element is relatively positioned, then it should act as containing block for any of its abs. pos. descendant, just like §10.1 explains. [1] CSS2.1, section 10.1 Containing block " 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. In CSS 2.1, if the inline element is split across multiple lines, the containing block is undefined. 2. Otherwise, the containing block is formed by the padding edge of the ancestor. If there is no such ancestor, the containing block is the initial containing block. " http://www.w3.org/TR/CSS21/visudet.html#containing-block-details 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 Sunday, 28 July 2013 02:07:11 UTC