/** * 'height' CSS property should be inherited by table cells from table rows * (as, obviously, ) */ function inherit($old_state, &$new_state) { $parent_display = $old_state[CSS_DISPLAY]; if ($parent_display === "table-row") { $new_state[CSS_MIN_HEIGHT] = $old_state[CSS_MIN_HEIGHT]; return; } $new_state[CSS_MIN_HEIGHT] = is_inline_element($parent_display) ? $this->get($old_state) : $this->default_value(); }
function inherit() { // Determine parent 'display' value $handler =& get_css_handler('display'); // 'display' CSS property processed AFTER this; so parent display value will be // on the top of the stack // $parent_display = $handler->get(); // Inherit vertical-align from table-rows if ($parent_display === "table-row" || $parent_display === "table") { $this->push($this->get()); return; } $this->push(is_inline_element($parent_display) ? $this->get() : $this->default_value()); }
function applicable($css_state) { $handler =& CSS::get_handler(CSS_DISPLAY); $display = $handler->get($css_state->getState()); return $display === 'table-cell' || $display === 'table-row' || is_inline_element($display); }
function inherit() { $handler =& get_css_handler('display'); $parent_display = $handler->get_parent(); $this->push(is_inline_element($parent_display) ? $this->get() : $this->default_value()); }
function inherit() { // Determine parent 'display' value $handler =& get_css_handler('display'); $parent_display = $handler->get_parent(); // Inherit vertical-align from table-rows if ($parent_display === "table-row") { $this->push($this->get()); return; } $this->push(is_inline_element($parent_display) ? $this->get() : $this->default_value()); }
function applicable() { $handler =& get_css_handler('display'); $display = $handler->get(); return $display === 'table-cell' || $display === 'table-row' || is_inline_element($display); }