[css3-text] Re: Orphan control in CSS

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 UTC