W3C home > Mailing lists > Public > www-style@w3.org > August 1999

REC-CSS2 contradicts itself on "containing blocks"

From: Gilbert Baumann <unk6@rz.uni-karlsruhe.de>
Date: Wed, 18 Aug 1999 08:50:27 +0200
To: www-style@w3.org
Message-Id: <E11GzYJ-00074z-00@mailgate.rz.uni-karlsruhe.de>
There are two contradiction in REC-CSS2-19980512:

Quote i: section 8.1 (Box dimensions) says

| padding edge
|      [...] The padding edge of a box defines the edges of the
|      containing block established by the box.

Quote ii: section 9.4.3 (Relative positioning), second paragraph:

|  A relatively positioned box establishes a new a new containing
|  block for normal flow children and positioned descendants.

Quote iii: 10.1 (Definition of "containing block"), item 2 says: 

|   2. For other elements, unless the element is absolutely positioned, the
|      containing block is formed by the content edge of the nearest
|      block-level ancestor box.


The first question is: What are the edges of an vanilla containing
block?  The padding edges (quote i) or the content edges (quote iii).

The second question is: Suppose this input:

    <STYLE>
    EM { position: relative; }
    </STYLE>
    
    <P>
      <EM>foo <B>bar</B> baz</EM>

What is the containg block of the B element? The box(en) created by EM
(quote ii) or the box created by P (quote iii)? (after all EM is an
inline element).

Gilbert.
Received on Wednesday, 18 August 1999 02:51:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:00 GMT