1<?php
2// $Header: /cvsroot/html2ps/css.min-width.inc.php,v 1.1 2006/09/07 18:38:14 Konstantin Exp $
3
4class CSSMinWidth extends CSSSubFieldProperty {
5  function CSSMinWidth(&$owner, $field) {
6    $this->CSSSubFieldProperty($owner, $field);
7  }
8
9  function get_property_code() {
10    return CSS_MIN_WIDTH;
11  }
12
13  function get_property_name() {
14    return 'min-width';
15  }
16
17  function parse($value) {
18    if ($value == 'inherit') {
19      return CSS_PROPERTY_INHERIT;
20    }
21
22    return Value::fromString($value);
23  }
24}
25
26?>