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

[css3-text] Re: Orphan control in CSS

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Thu, 05 Jan 2012 14:42:13 +0100
Message-ID: <4F05A8B5.7030905@kozea.fr>
To: www-style@w3.org
Le 05/01/2012 14:35, Matthew Wilcox a écrit :
> OK then, what about, as Lea suggests:
>
> orphan-words: 2;
>
> The number being the minimum number of words that must appear on the
> new-line if a new-line is required.
>
> e.g.,
>
> This is a heading that doesn't wrap
>
> This is a heading that has an
> orphan
>
> This is a heading that wraps with
> orphan control

Looks good to me.

The spec for this would need to define how words are counted in various 
languages/scripts. Counting line-break opportunities sounds reasonable.

Should this (if it is accepted) go in css3-text or somewhere else?

-- 
Simon Sapin
Received on Thursday, 5 January 2012 13:47:58 GMT

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