Robert O'Callahan wrote:
I've thought it would be nice if whitespace-only, 'white-space:normal' text between two blocks didn't have to create a text frame at all. That would save a frame object and a line object in a rather common case. (If we split blocks into "block of blocks" and "block of inlines", it would save us a "block of inlines" object as well.) Option (2) heads in the right direction for that.

I've thought about this too, but we'd need to start doing frame reconstructs, not just reflows, on white-space changes. Past that, it would actually be pretty easy with the frame construction item setup, with the caveat being that dynamic changes would be a bit of a pain.

We could alternately take IE's approach and drop whitespace between block-level HTML elements in the parser. Not sure whether HTML5 allows that, of course, and that's not what Safari and Opera do...

-Boris
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to