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

RE: [css3-text] Balance Text proposal: <br> handling

From: Randy Edmunds <redmunds@adobe.com>
Date: Thu, 31 Jan 2013 08:22:27 -0800
To: Peter Moulder <peter.moulder@monash.edu>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <EF8190CAE830584B9A075FBE708F5548014A0703E6F7@NAMBX02.corp.adobe.com>

> The description so far doesn't mention how to handle forced breaks in the text to be balanced.
> I see that the javascript implementation simply strips these, which of course seems wrong.
> What's less clear is what the right behaviour is: whether to balance individual br-delimited
>  fragments independently of each other, or whether <br> is allowed to leave a short line,
> or something part way between, or whether to try something more sophisticated that sometimes
> uses more than the minimum number of lines in order to reduce variation and/or short lines.

This does not seem like an intended case, and I honestly don't have any preference over what the behavior should be. Another possibility is to detect break tags and do not reformat in that case.

Correct, the JavaScript implementation does not handle that case. It uses <br> to break the text, so during subsequent formatting due to onresize() event, it simply strips out <br> tags. That code could be updated to keep track of which <br> tags it inserted and only strip those (once a desired behavior is defined).

Received on Thursday, 31 January 2013 16:22:59 UTC

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