1<?php 2 3class TestFontSize extends GenericTest { 4 function testFontSizeMM() { 5 $tree = $this->runPipeline(' 6<html> 7<head> 8<style type="text/css"> 9body { font-size: 10mm; line-height: 1; } 10</style> 11</head> 12<body> 13TEXT 14</body> 15</html> 16'); 17 18 $inline = $tree->get_first(); 19 $text = $inline->get_first(); 20 $this->assertEqual($text->words[0], "TEXT"); 21 $this->assertWithinMargin($text->get_full_height(), mm2pt(10), 0.01); 22 } 23} 24 25?>