W3C home > Mailing lists > Public > www-style@w3.org > March 2012

[CSS21] 10.1 Containing block: when "the ancestor is an inline element": editorial improvements

From: Gérard Talbot <www-style@gtalbot.org>
Date: Thu, 8 Mar 2012 00:10:43 -0500
Message-ID: <0fb252cf61ff378766493a5531c8d80f.squirrel@ed-sh-cp3.entirelydigital.com>
To: "W3C www-style mailing list" <www-style@w3.org>
Hello,

Section 10.1, bullet 4 (with sub-bullets 1 and 2)
http://www.w3.org/TR/CSS21/visudet.html#containing-block-details

Current text is:

{
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.
}


Proposed replacement (the pairs of ** indicate where editorial changes
would be):

{
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 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. In CSS
2.1, if the inline element is split across multiple lines, the containing
block is undefined.

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


What can definitely create confusion and misinterpretation is this
proposition:
"In the case that the ancestor is an inline element (...)"
when the proposition should at least explicitly identify such ancestor as
"the nearest positioned ancestor".

Gérard
-- 
CSS 2.1 Test suite RC6, March 23rd 2011
http://test.csswg.org/suites/css2.1/20110323/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 Thursday, 8 March 2012 05:11:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 03:48:51 GMT