W3C home > Mailing lists > Public > www-style@w3.org > January 2013

Re: [css3-text] Balance Text proposal

From: L. David Baron <dbaron@dbaron.org>
Date: Wed, 30 Jan 2013 16:31:53 -0800
To: Alan Stearns <stearns@adobe.com>
Cc: Scott Johnson <sjohnson@mozilla.com>, Randy Edmunds <redmunds@adobe.com>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <20130131003153.GA10759@crum.dbaron.org>
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.


𝄞   L. David Baron                         http://dbaron.org/   𝄂
𝄢   Mozilla                           http://www.mozilla.org/   𝄂
Received on Thursday, 31 January 2013 00:32:17 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:25 UTC