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

Re: [css3-text] Re: Orphan control in CSS

From: Håkon Wium Lie <howcome@opera.com>
Date: Sun, 8 Jan 2012 05:02:03 +0100
Message-ID: <20233.5435.66012.989529@gargle.gargle.HOWL>
To: Peter Moulder <peter.moulder@monash.edu>
Cc: www-style@w3.org
Peter Moulder wrote:

 > > I tend to think that
 > > without whole-paragraph line break optimization, it's just going to
 > > make things look funny and authors aren't going to want to use it
 > > (perhaps with exceptions for very limited cases, like headings that
 > > will appear on either one or two lines).

 > I do agree that headings are a bit different, though: for a heading that
 > takes up two lines, it can look a bit strange even if the second line has
 > quite a decent length, like three words occupying a third of a line.
 > 
 > So something like a last-line-length:50% declaration might be useful for
 > headings (so long as it doesn't result in any other lines having a length
 > less than 50%, at least).

It's somewhat similar to column balancing. Perhaps we only need a
binary switch to say "balance lines" rather than a fine-grained
percentage-based value.

 > Another possible approach for headings: does CSS have anything that would
 > have the effect of making lines have roughly equal length?  That might be
 > useful for pull-quotes, or for use with text-align-last:justify.

Perhaps:

  text-align: balance;             /* balance lines */
  text-align: balance justify;     /* balance and justify lines */

-h&kon
              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome
Received on Sunday, 8 January 2012 04:03:07 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:48 GMT