Re: Initial values for widows and orphans

On 12/12/2012 01:03 PM, Sylvain Galineau wrote:
> [fantasai:]
>>
>> I don't see that changing the spec here is particularly useful or
>> necessary.
>> Just put
>>
>> html {
>>     widows: 1;
>>     orphans: 1;
>> }
>>
>> in the UA style sheet.
>>
>
> Er, not breaking existing content is quite useful and necessary :)

I'm not opposed to changing the initial value to 1. I think it would
make more sense actually. But existing implementations would have to
change, and there are several. For Web content, the rule above is
equivalent to changing the initial value. [1] So there's a question
of which is a better way of solving the compat issue.

I'll note also that IE and Opera both implement these properties, and
nobody on either team has requested a change in the initial value.
However it seems Microsoft thinks 0 is a valid value and is the initial
value:
   http://msdn.microsoft.com/en-us/library/ie/cc304062%28v=vs.85%29.aspx
I haven't checked Opera. Other implementations include PrinceXML,
Antenna House, WeasyPrint, Web2PDF, and various less well-known ones.

[1] Unless you put :root { widows: inherit; orphans: inherit; } in
     your style sheet for some reason, but no sane or insane web
     developer would do that, only a layout QA would.

~fantasai

Received on Thursday, 13 December 2012 00:41:10 UTC