CSSPropertyHandler(true, false); $this->_autoValue = ValueHeight::fromString('auto'); } /** * 'height' CSS property should be inherited by table cells from table rows */ function inherit($old_state, &$new_state) { $parent_display = $old_state[CSS_DISPLAY]; $this->replace_array(($parent_display === 'table-row') ? $old_state[CSS_HEIGHT] : $this->default_value(), $new_state); } function _getAutoValue() { return $this->_autoValue->copy(); } function default_value() { return $this->_getAutoValue(); } function parse($value) { return ValueHeight::fromString($value); } function get_property_code() { return CSS_HEIGHT; } function get_property_name() { return 'height'; } } CSS::register_css_property(new CSSHeight); ?>