[css21] Wording of float positioning rule no. 2

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 UTC