Files
luos/thirdparty/html2ps_pdf/css.list-style-position.inc.php
Paula Quispe 9eb7d6cac2 HOR-2689
2017-08-03 17:00:30 -04:00

32 lines
691 B
PHP

<?php
// $Header: /cvsroot/html2ps/css.list-style-position.inc.php,v 1.6 2006/07/09 09:07:45 Konstantin Exp $
define('LSP_OUTSIDE',0);
define('LSP_INSIDE',1);
class CSSListStylePosition extends CSSSubFieldProperty {
// CSS 2.1: default value for list-style-position is 'outside'
function default_value() { return LSP_OUTSIDE; }
function parse($value) {
if (preg_match('/\binside\b/',$value)) {
return LSP_INSIDE;
};
if (preg_match('/\boutside\b/',$value)) {
return LSP_OUTSIDE;
};
return null;
}
function getPropertyCode() {
return CSS_LIST_STYLE_POSITION;
}
function getPropertyName() {
return 'list-style-position';
}
}
?>