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

CSS2: Interaction of run-in with floats

From: Ian Hickson <py8ieh@bath.ac.uk>
Date: Sat, 27 Mar 1999 02:34:18 +0000 (BST)
To: www-style <www-style@w3.org>
Message-ID: <Pine.GSO.4.04.9903270217380.25603-100000@ss1.bath.ac.uk>
 
CSS2 says:
  
# 9.2.4 Run-in boxes
# A run-in box behaves as follows:
#    * If a block box (that does not float and is not absolutely
#      positioned) follows the run-in box, the run-in box becomes the
#      first inline box of the block box.
#    * Otherwise, the run-in box becomes a block box.

Imagine the following:

   <P style="display:run-in"> Alice
   <P style="float:right">    Bob
   <P style="display:block">  Chris
 
Since the float is taken out of the flow, I would assert that the
block level "Chris" paragraph _does_ follow the run-in paragraph
"Alice", and thus Alice should run-in to "Chris". It appears to me
that the bracketed text above is merely making sure that a run-in does
not become part of the float.

Hence:

   Alice Chris              Bob

...and not:

   Chris              Alice Bob

 
Is this what was intended? Or should *all* elements in the DOM,
including floats that have been taken out of flow, be taken into
consideration?

Which in this case would cause this:

   Alice                    Bob
   Chris 

I would suggest that the first interpretation is the intended one, but
would appreciate comments from working group members as to the exact
meaning of the above.
 
-- 
Ian Hickson 
U+2642 U+2651
U+262E U+2603 U+263A
Received on Friday, 26 March 1999 21:34:23 GMT

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