Last Comment Bug 137367 - Implement orphans and widows
: Implement orphans and widows
Status: NEW
parity-Opera, parity-IE8
: css2, testcase
Product: Core
Classification: Components
Component: Layout: Block and Inline (show other bugs)
: Trunk
: All All
: P4 enhancement with 50 votes (vote)
: Future
Assigned To: Nobody; OK to take it and work on it
Depends on: 132035 481826
Blocks: css2.1-tests css3-break
  Show dependency treegraph
Reported: 2002-04-14 03:53 PDT by Mikko Rantalainen
Modified: 2016-07-11 02:09 PDT (History)
29 users (show)
benjamin: blocking1.9.2-
benjamin: wanted1.9.2-
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

test case: orphans and widows (print) (17.67 KB, text/html)
2002-04-14 03:55 PDT, Mikko Rantalainen
no flags Details

Description Mikko Rantalainen 2002-04-14 03:53:09 PDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.9+) Gecko/20020412
BuildID:    2002041217

CSS2 properties orphans and widows
( are not implemented or
they don't simply work. Attached test case has p {orphans: 4; widows: 4; } but
neither have any effect.

Reproducible: Always
Steps to Reproduce:
1. Open attached test case
2. Select Print or Print Preview

Actual Results:  Mozilla breaks paragraph at the end of page no matter how many
lines there is.

Expected Results:  If there would be less than 4 lines at the end of page or
less than 4 lines at the beginning of the next page the entire paragraph should
be moved to next page.
Comment 1 Mikko Rantalainen 2002-04-14 03:55:15 PDT
Created attachment 79134 [details]
test case: orphans and widows (print)

You might need to tweak paragraph text to make page break to hit inside a
Comment 2 Boris Zbarsky [:bz] 2002-04-14 07:06:00 PDT
This is simply not implemented yet.
Comment 3 Kai Lahmann (is there, where MNG is) 2002-04-14 12:58:12 PDT
I thought I had reported this before.. hm
Comment 4 Christine Hoffman 2002-04-15 20:10:16 PDT
Changing QA contact
Comment 5 Moied 2002-04-17 12:26:24 PDT
Reassigning to Style System: CCS, CC'ing Madhur
Comment 6 Brant Gurganus 2002-06-08 12:27:24 PDT
Here is a testcase:
Comment 7 John A. 2002-06-21 21:42:01 PDT
Would this affect printing of tables as well? If not, there should be an
enhancement "bug" logged for that.
Comment 8 David Baron :dbaron: ⌚️UTC-7 (review requests must explain patch) 2004-02-07 11:03:50 PST
Requests for new CSS properties that need to be implemented in layout should
generally live in the appropriate layout component, since that's where most of
the work is.
Comment 9 Kevin Benton 2005-05-25 13:47:55 PDT
I have been able to reproduce this issue as well...
Comment 10 Kevin Benton 2005-05-25 13:57:04 PDT for sample
output of the following code

    orphans: 4;
    page-break-inside: avoid;
    text-align: left;
    widows: 4;
<div class="issues">
    This section lists all the Development Plan review issues and their current

Comment 11 Mikko Rantalainen 2006-02-27 01:20:32 PST
I guess it doesn't make sense to support this before fixing bug 132035 (I guess this cannot be supported until page-break-inside: avoid is supported). Adding dependency.
Comment 12 Zack Weinberg (:zwol) 2010-02-18 11:39:21 PST
Orphan and widow control is also supposed to apply to individual columns in CSS3 multicolumn mode (see <>).  That might be implementable separately from the page-break controls.
Comment 13 Florian Bender 2014-02-01 12:29:24 PST
This makes more sense in CSS.

Note You need to log in before you can comment on or make changes to this bug.