Re: [css21] widows-004a test incorrect

Le 2016-08-25 14:00, Gérard Talbot a écrit :
> Hello,
> 
> [nightly-unstable]
> http://test.csswg.org/suites/css2.1/nightly-unstable/html4/widows-004a.htm
> 
> The test is incorrect.
> "
>  'widows'
>     Value:   <integer> | inherit
> (...)
> 
> The 'widows' property specifies the minimum number of lines in a block
> container that must be left at the top of a page.
> "
> CSS 2.1, section 13.3.2 Breaks inside elements: 'orphans', 'widows'
> https://www.w3.org/TR/CSS21/page.html#break-inside
> 
> 
> So, there should be 5 lines (and not 2) at the top of page 2.
> 
> 
> Proposed corrections
> - - - - - - - - - -
> 
> line 31: widows: 5; /* valid */
> line 32: widows: 2.0; /* invalid */
> line 33: widows: 2em; /* invalid */
> line 34: widows: -2; /* invalid */
> line 35: widows: 0; /* invalid */
> 
> 
> line 46: <div class="test">
> line 47:     Page&nbsp;1&nbsp;Line&nbsp;A
> line 48:     Page&nbsp;1&nbsp;Line&nbsp;B
> line 49:     Page&nbsp;2&nbsp;Line&nbsp;C
> line 50:     Page&nbsp;2&nbsp;Line&nbsp;D
> line 51:     Page&nbsp;2&nbsp;Line&nbsp;E
> line 52:     Page&nbsp;2&nbsp;Line&nbsp;F
> line 53:     Page&nbsp;2&nbsp;Line&nbsp;G
> line 54: </div>
> 

Also, the pass-fail-conditions sentence should read instead:

Lines A-B must appear on this page; lines C-G must appear on the next 
page.

Gérard
-- 
Test Format Guidelines
http://testthewebforward.org/docs/test-format-guidelines.html

Test Style Guidelines
http://testthewebforward.org/docs/test-style-guidelines.html

Test Templates
http://testthewebforward.org/docs/test-templates.html

CSS Naming Guidelines
http://testthewebforward.org/docs/css-naming.html

Test Review Checklist
http://testthewebforward.org/docs/review-checklist.html

CSS Metadata
http://testthewebforward.org/docs/css-metadata.html

Received on Thursday, 25 August 2016 18:07:09 UTC