Compact/run-in amendments

<blockquote cite="CSS 9.2.3">
A compact box behaves as follows:
If a block box (that does not float and is not absolutely positioned)
follows the compact box, the compact box is formatted like a one-line
inline box. The resulting box width is compared to one of the side
margins of the block box. The choice of left or right margin is
determined by the 'direction' specified for the element producing the
containing block for the compact box and following box. If the inline
box width is less than or equal to the margin, the inline box is given a
position in the margin as described immediately below.

The meaning of 'follows' is not defined. I would argue that the correct
words are '(that does not float)', since the meaning that seems implied,
namely 'follows in the markup', is unnecessarily restrictive - why
shouldn't the following be formatted in a compact manner:

z<p style="display: compact">
<img src="position: absolute; top: 500000px; left: 500000px">
<p style="margin-left: 5em">
Block box

The absolutely positioned element has been thrown more than seven
hundred thousand pixels away, so I see no reason why it should affect
the compact element's formatting. I believe that since the absolutely
positioned elements is not in normal flow it should not affect the
position of elements, such as the compact element, in normal flow at

I would argue similarly for run-in elements - the only thing that should
inhibit the compactness or run-in status of an element is the presence
of a block-level floated element (although in practice all inline-level
elements would also do so, since they are surrounded by anonymous
block-level elements).

Received on Monday, 20 March 2000 06:23:23 UTC