Location: PHPKode > projects > Html2ps > html2ps-2.0.43/css.color.inc.php
<?php
// $Header: /cvsroot/html2ps/css.color.inc.php,v 1.13 2007/01/24 18:55:51 Konstantin Exp $

class CSSColor extends CSSPropertyHandler {
  function CSSColor() { 
    $this->CSSPropertyHandler(true, true); 
  }

  function default_value() { 
    return new Color(array(0,0,0),false); 
  }

  function parse($value) {
    if ($value === 'inherit') {
      return CSS_PROPERTY_INHERIT;
    };

    return parse_color_declaration($value);
  }

  function get_property_code() {
    return CSS_COLOR;
  }

  function get_property_name() {
    return 'color';
  }
}

CSS::register_css_property(new CSSColor);

?>
Return current item: Html2ps