1<?php 2 3class TestTableAbsolute extends GenericTest { 4 function TestTableAbsolute1() { 5 $tree = $this->runPipeline(' 6<style type="text/css"> 7body { 8 margin: 0; 9 padding: 0; 10} 11</style> 12<table id="table" style="position: absolute; left: 11mm; top: 17mm;" cellpadding="0" cellspacing="0"> 13<tr><td> </td></tr> 14</table> 15'); 16 17 $table = $tree->get_element_by_id('table'); 18 $body = $tree->get_body(); 19 20 $this->assertEqual($table->get_top_margin(), $body->get_top() - mm2pt(17)); 21 $this->assertEqual($table->get_left_margin(), mm2pt(11)); 22 } 23} 24 25?>