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 TestBlockAbsolute extends GenericTest {
4
  function TestBlockAbsolute1() {
5
    $tree = $this->runPipeline('
6
<style type="text/css">
7
body {
8
  margin: 0;
9
  padding: 0;
10
}
11
</style>
12
<div id="block" style="position: absolute; left: 10mm; top: 20mm;">
13
&nbsp;
14
</div>
15
');
16
 
17
    $block = $tree->get_element_by_id('block');
18
    $body = $tree->get_body();
19
 
20
    $this->assertEqual($block->get_top_margin(), $body->get_top() - mm2pt(20));
21
    $this->assertEqual($block->get_left_margin(), mm2pt(10));
22
  }
23
}
24
 
25
?>