Files
luos/thirdparty/html2ps_pdf/css.bottom.inc.php

56 lines
1.6 KiB
PHP
Raw Normal View History

2010-12-02 23:34:41 +00:00
<?php
// $Header: /cvsroot/html2ps/css.bottom.inc.php,v 1.6 2006/11/11 13:43:52 Konstantin Exp $
require_once(HTML2PS_DIR.'value.bottom.php');
/**
* 'bottom'
* Value: <length> | <percentage> | auto | inherit
* Initial: auto
* Applies to: positioned elements
* Inherited: no
* Percentages: refer to height of containing block
* Media: visual
* Computed value: for 'position:relative', see section Relative
* Positioning. For 'position:static', 'auto'. Otherwise: if
* specified as a length, the corresponding absolute length; if
* specified as a percentage, the specified value; otherwise, 'auto'.
*
* Like 'top', but specifies how far a box's bottom margin edge is
* offset above the bottom of the box's containing block. For
* relatively positioned boxes, the offset is with respect to the
* bottom edge of the box itself. Note: For absolutely positioned
* elements whose containing block is based on a block-level element,
* this property is an offset from the padding edge of that element.
*/
class CSSBottom extends CSSPropertyHandler {
function CSSBottom() {
$this->CSSPropertyHandler(false, false);
$this->_autoValue = ValueBottom::fromString('auto');
}
function _getAutoValue() {
return $this->_autoValue->copy();
}
function default_value() {
return $this->_getAutoValue();
}
function getPropertyCode() {
return CSS_BOTTOM;
}
function getPropertyName() {
return 'bottom';
}
function parse($value) {
return ValueBottom::fromString($value);
}
}
CSS::register_css_property(new CSSBottom);
?>