CSSPropertyHandler(true, true);
}
function default_value() {
return array("U"=>false,
"O"=>false,
"T"=>false);
}
function parse($value) {
if ($value === 'inherit') {
return CSS_PROPERTY_INHERIT;
};
$parsed = $this->default_value();
if (strstr($value,"overline") !== false) { $parsed['O'] = true; };
if (strstr($value,"underline") !== false) { $parsed['U'] = true; };
if (strstr($value,"line-through") !== false) { $parsed['T'] = true; };
return $parsed;
}
function get_property_code() {
return CSS_TEXT_DECORATION;
}
function get_property_name() {
return 'text-decoration';
}
}
CSS::register_css_property(new CSSTextDecoration);
?>