Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
 
3
class TestCSSPageBreakInside extends GenericTest {
4
  function testCSSPageBreakInside1() {
5
    $tree = $this->runPipeline('
6
<html>
7
<head>
8
<style type="text/css">
9
#div { page-break-inside: avoid; }
10
</style>
11
</head>
12
<body>
13
<div id="div">&nbsp;</div>
14
</body>
15
</html>
16
');
17
 
18
    $div = $tree->get_element_by_id('div');
19
 
20
    $this->assertEqual(PAGE_BREAK_AVOID, $div->getCSSProperty(CSS_PAGE_BREAK_INSIDE));
21
  }
22
}
23
 
24
?>