W3C home > Mailing lists > Public > www-style@w3.org > January 2000

Re: Floating objects

From: Allan Odgaard <Duff@DIKU.DK>
Date: Tue, 11 Jan 2000 17:02:47 +0100
To: Bert Bos <Bert.Bos@sophia.inria.fr>
CC: www-style@w3.org
Message-ID: <yam8045.2388.139699664@smtpserver.get2net.dk>
On 11-Jan-00, Bert Bos wrote:

>> Hi there, I'm writing a CSS2 capable browser and have a question.
> That's good news. What are your plans for that browser?

It's probably of little interest, as it's written for the Amiga computer :-)
But just for the records then it's most likely going to be released as
shareware (if that's what you refer to with 'plans')
The Amiga has no stylesheet supporting user agent, which is why I'll probably
be asking a lot of questions in this forum, as I have no other reference than
the standard itself, which isn't always 100% clear...

>> [...] if the following box is given a border, should it then be
>> rendered over the floating box? I.e. to surround all of the text shown in
>> the first example.
> Yes, the border should surround all of the text in the first diagram, [...]

OK, one more question: Had the floating object been the tallest, would the
following element than have been closed without first 'flushing' any floats?
E.g.

    ###################
    #+--------+ Small #
    #|Big box | box!  #
    #|of much |########
     |text    |
     |floating|
     |here... |
     +--------+

If this is the case then which exceptions exist? I.e. I assume that table-cells
should flush any floating objects, before the box is closed. And the same
should probably also apply to other floating objects, and maybe absolute
placed objects?


Another thing I've been considering is whether this markup:
   <P>Hello <Div Style="float: left">Floating text...</Div>World!</P>
Should be rendered as:

   Hello world!
   +--------+
   |Floating|
   |text... |
   +--------+

Or instead:

   Hello 
   +--------+world!
   |Floating|
   |text... |
   +--------+

I suspect it's the first way, but this gives a problem (in the implementation)
if the text after the float changes the line-height.  I.e. when I see the
floating object I'll place it below the current linebox of the containing
object. But if more text is added to this linebox, it may grow in height, and 
the position given to the floating object is wrong (it should be pushed down
the same amount of space as the linebox gained)

> [1] http://lists.w3.org/Archives/Public/www-style/1999Sep/0063.html

Thanks! As I'm new to this list then I do appreciate references to older
threads very much!

Kind regards Allan
-- 
     URL: http://www.DIKU.dk/students/duff/
<sb>
BUG (n.) undocumented feature. FEATURE (n.) documented bug.
Received on Tuesday, 11 January 2000 11:04:22 GMT

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