James Ross wrote:[...]
If you go with the strict CSS 2.1 way, you place the float top level with the top of the text - but the last word wraps now! Thus, buy rule 6 of CSS 2.1, the float must be moved down so it's top matches the top of the new 2nd line of text. But now the last word can fit on the fits line again. Welcome to the wonderful world of recursion. ;)
Firstly, the only solution to this is to wrap even though the word does actually fit on the line.
[...]
[snip]
I don't see a need of recursion. If there's no room for the float on the line of the just preceding line-box it is shifted down and there may appear words above the float which are after it in the source. This doesn't break any rules, or I'm missing something?
Hm, didn't see that solution before. Sorry, I was only explaining why it *could* be hard to lay out such things, and completely forgot that solution (which I've actually used myself, thinking about it). D'oh. :)
-- James Ross <[EMAIL PROTECTED]>
Heisenberg may have been here.
-- Bugzilla Quip List_______________________________________________ Mozilla-layout mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-layout
