Re: [css3-text] Balance Text proposal

On Wednesday 2013-01-30 16:10 -0800, Alan Stearns wrote:
> The page that Randy linked describing the algorithm covers this - take a
> look at the "Container Size" section:
> 
> ---
> This algorithm does not affect the width or height of the containing
> element as this may affect rendering of the rest of the document. The
> resulting text will always wrap to same number of lines as original text
>  so height doesn't change. Line width of resulting text should not
> exceed container size to width doesn't change. It only affects where
> line breaks occur.
> 
> One exception to this may be shrink-to-fit containers.
> ---

This seems to make a bunch of assumptions that aren't, in general,
true in CSS.

In particular, it assumes that all the lines end up the same height
(which is true only if there are no variations in font or vertical
alignment, and might even require that there be no variation in
which fonts are selected as a result of character-by-character
fallback), that there are no floats anchored within the text that
you're trying to balance.

-David

-- 
𝄞   L. David Baron                         http://dbaron.org/   𝄂
𝄢   Mozilla                           http://www.mozilla.org/   𝄂

Received on Thursday, 31 January 2013 00:32:17 UTC