1<?php
2
3class TestRelative extends GenericTest {
4  function testRelativeNoOffset() {
5    $tree = $this->runPipeline('
6<html>
7<head>
8<style type="text/css">
9body   { font-size: 10mm; }
10#div1 { position: relative; }
11</style>
12</head>
13<body>
14<div id="div1">&nbsp;</div>
15</body>
16</html>
17');
18
19    $body       = $tree;
20    $first_div  = $tree->get_element_by_id('div1');
21
22    $this->assertEqual($body->get_left(),
23                      $first_div->get_left_margin());
24    $this->assertEqual($body->get_top(),
25                      $first_div->get_top_margin());
26  }
27}
28
29?>