1<?php
2
3class TestOrphansInherit extends GenericTest {
4  function testOrphansInherit1() {
5    $tree = $this->runPipeline('
6<html>
7<head>
8<style type="text/css">
9body   { font-size: 10mm; line-height: 1; orphans:0; widows: 0; padding: 0; margin: 0; }
10#first { line-height: 1; height: 190mm; }
11</style>
12</head>
13<body>
14<div id="first">&nbsp;</div>
15<div id="second">
16LINE1<!--Page break should be here-->
17LINE2
18LINE3
19LINE4
20LINE5
21</div>
22</body>
23</html>
24');
25
26    $div = $tree->get_element_by_id('first');
27    $this->assertEqual($div->getCSSProperty(CSS_ORPHANS), 0);
28
29    $div = $tree->get_element_by_id('second');
30    $this->assertEqual($div->getCSSProperty(CSS_ORPHANS), 0);
31  }
32}
33
34?>