[CSS21] 9.2.1.1 breaking inline boxes around block boxes

9.2.1.1 (Anonymous block boxes) says:[1]

   # When an inline box contains a block box, the inline box (and its
   # inline ancestors within the same line box) are broken around the
   # block. The line boxes before the break and after the break are
   # enclosed in anonymous boxes, and the block box becomes a sibling of
   # those anonymous boxes.

Precisely which line boxes does the anonymous (block) boxes contain?  I
think this is trying to say that they contain as much inline content as
possible whilst ensuring that they contain /only/ inline content.  But
it's not very clear.

Also, the original inline box no longer exists, right?  There are two
new inline boxes, one on either side of the break (inside the anonymous
block boxes)?


[1] http://www.w3.org/TR/CSS2/visuren.html#anonymous-block-level

Cheers,
Anton Prowse
http://dev.moonhenge.net

Received on Sunday, 25 July 2010 12:27:48 UTC