W3C home > Mailing lists > Public > www-style@w3.org > May 2012

[css21] Wording of float positioning rule no. 2

From: Øyvind Stenhaug <oyvinds@opera.com>
Date: Tue, 22 May 2012 15:51:05 +0200
To: "www-style@w3.org" <www-style@w3.org>
Message-ID: <op.wepp3frmbunlto@oyvinds-desktop>
http://www.w3.org/TR/CSS21/visuren.html#float-position - item 2 in the  
list of rules:

"If the current box is left-floating, and there are any left-floating  
boxes generated by elements earlier in the source document, then for each  
such earlier box, either the left outer edge of the current box must be to  
the right of the right outer edge of the earlier box, or its top must be  
lower than the bottom of the earlier box. Analogous rules hold for  
right-floating boxes."

This (combined with the "as high as possible"/"as far to the left/right as  
possible") is comparable to saying "find the smallest real number that is  
greater than 1". More precise, I think, would be something like

"If the current box is left-floating, and there are any left-floating  
boxes generated by elements earlier in the source document, then for each  
such earlier box, either the left outer edge of the current box must be no  
further to the left than the right outer edge of the earlier box, or its  
top must be no higher than the bottom of the earlier box. Analogous rules  
hold for right-floating boxes."

(These things start to matter when you have zero heights, such as the  
cases discussed in the "Nested floats and zero-height margin box" thread.)

-- 
Øyvind Stenhaug
Core Norway, Opera Software ASA
Received on Tuesday, 22 May 2012 13:52:04 GMT

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