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

Re: [CSS21] Issue 185 (line boxes next to floats)

From: Sylvain Galineau <sylvaing@microsoft.com>
Date: Fri, 11 Mar 2011 18:46:50 +0000
To: "Anton Prowse (prowse@moonhenge.net)" <prowse@moonhenge.net>
CC: "www-style@w3.org" <www-style@w3.org>
Message-ID: <045A765940533D4CA4933A4A7E32597E2AB8CAE1@TK5EX14MBXC113.redmond.corp.microsoft.com>
Anton,

The CSSWG has resolved to edit the CSS2.1 specification [1] to reflect your feedback.

Please respond before 14 March, 2011 if you have an issue with this resolution.
 
[1] http://w3.org/TR/CSS		

Original message: http://lists.w3.org/Archives/Public/www-style/2010Sep/0130.html
ISSUE-279: http://wiki.csswg.org/spec/css2.1#issue-273

From: Anton Prowse <prowse@moonhenge.net> 
Date: Sun, 05 Sep 2010 10:33:54 +0200
 Message-ID: <4C8355F2.2060502@moonhenge.net> 
To: "www-style@w3.org" <www-style@w3.org> 

The proposal for Issue 185 (http://wiki.csswg.org/spec/css2.1#issue-185)
is:

>        Add somewhere after:
>          # However, line boxes created next to the float are shortened to
>          # make room for the margin box of the float.
>        The following:
>          | A line box is next to a float when there exists a vertical position
>          | that satisfies all of these four conditions:
>          | (a) at or below the top of the line box, (b) at or above the
>          | bottom of the line box, (c) below the top margin edge of the
>          | float, and (d) above the bottom margin edge of the float.
>          | Note: this means that floats with zero height or negative
>          | height do not move line boxes.

This defines "next to a float" to mean "on the same horizontal level as 
the float", which is a reasonable approach; but bear in mind that this 
means that a line box can be "next to" a float which doesn't intersect 
the content area in which the line box sits (for example, a float that 
is entirely inside the padding area due to negative side margin, or a 
float whose containing block doesn't intersect the containing block of 
the line box).

Accordingly, we also need to modify the sentence quoted above along the 
lines of

   | However, line boxes created next to the float are shortened <ins>as
   | necessary</ins> to make room for the margin box of the float.

since a line box might not be shortened.  This is important because 
shortened line boxes behave differently from normal line boxes, in that 
they are not permitted to overflow their containing block.  There is 
reasonably good interop showing that line boxes in the situations just 
described are /not/ regarded as shortened.

Cheers,
Anton Prowse
http://dev.moonhenge.net
Received on Friday, 11 March 2011 18:47:23 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:38 GMT