Re: Anonymous :blocks

Roger Larsson wrote to <mailto:www-style@w3.org> on 9 March 2003 in
"Anonymous :blocks" (<mid:3E6BD3B8.1080101@incrementa.se>):

> The CSS 2.1 specification states that every inline element has to be
> put inside an anonymous block if there is at least one block sibling.

Right, but there is no requirement that each inline element be in a separate
anonymous block [AB]:

    if a block box (such as that generated for the DIV above) has
    another block box inside it (such as the P above), then we
    force it to have only block boxes inside it, by wrapping any
    inline boxes in an anonymous block box.

I grant that this can be read with varying interpretations, but I think that
your presumption would be supported far better by changing "an anonymous
block box" to "anonymous block boxes". Consider that one anonymous block box
is generated for and contains all contiguous inline boxes.

[AB]
Editors: Bert Bos, Tantek Çelik, Ian Hickson, Håkon Wium Lie.
Subsection "Anonymous block boxes" of section 9.2.1 in "Cascading Style
Sheets, level 2 revision 1".
W3C Working Draft.
28 January 2003.
<http://www.w3.org/TR/2003/WD-CSS21-20030128/visuren.html#anonymous-block-le
vel>.

Received on Monday, 10 March 2003 02:38:08 UTC