W3C home > Mailing lists > Public > www-style@w3.org > October 2010

Re: [CSS21] 9.5.1: placing floats above earlier blocks & line boxes

From: Alan Gresley <alan@css-class.com>
Date: Thu, 14 Oct 2010 16:20:21 +1100
Message-ID: <4CB69315.5000202@css-class.com>
To: Peter Moulder <peter.moulder@monash.edu>, www-style@w3.org
Peter Moulder wrote:
> I must say that as someone without much CSS authoring experience, I can't say
> I like the idea of allowing floats to overlap previous text, and I have
> difficulty seeing the use cases.  I'd have thought it easy enough to implement
> rule 6 as written (though I'll grant it nevertheless does have some
> implementation cost compared to the behaviour I see implemented).

Just a quick reply. Firstly the floats do not overlap previous text. 
Put a background color on the float and notice that the "Blah" is 
layered higher than the float. BTW, what do you think having a top 
negative margin does to the layout?

Viewing from an axis of the canvas we have this.


              ^ Float
Text         |
Text (neg mar)

> So aesthetically (though speaking in ignorance of authoring practice) I hope
> that rule 6 stays as written, but there are obviously some good practical
> reasons why we might change rules 5 & 6 to match what seems like interoperably
> implemented behaviour.
> pjrm.

Floats rules should not apply when you have a whole segment of a page 
overlapping (this is not overflow) another segment due to a negative 

Alan http://css-class.com/

Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo
Received on Thursday, 14 October 2010 05:20:48 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:39 UTC