Re: Initial values for widows and orphans

(12/12/13 8:40), fantasai wrote:
> 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 suppose you are suggesting Safari put the above rule in the UA style
sheet? That doesn't sound the right thing to suggest as the HTML spec
more or less makes a UA non-compliant if it deviates from the Rendering
section.

But I am also not a fan of the 'auto'-for-arbitrary-behavior idea.

> [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.

There's also :root { widows: initial; orphans: initial; }. It's pretty
uncommon too.



Cheers,
Kenny
-- 
Web Specialist, Oupeng Browser, Beijing
Try Oupeng: http://www.oupeng.com/

Received on Thursday, 13 December 2012 11:49:19 UTC