25 array(
'left',
'right',
'center',
'justify'),
30 $this->info[
'border-bottom-style'] =
31 $this->info[
'border-right-style'] =
32 $this->info[
'border-left-style'] =
52 array(
'none',
'left',
'right',
'both'),
56 array(
'none',
'left',
'right'),
60 array(
'normal',
'italic',
'oblique'),
64 array(
'normal',
'small-caps'),
76 array(
'inside',
'outside'),
93 $this->info[
'list-style-image'] = $uri_or_none;
98 array(
'capitalize',
'uppercase',
'lowercase',
'none'),
103 $this->info[
'background-image'] = $uri_or_none;
105 array(
'repeat',
'repeat-x',
'repeat-y',
'no-repeat')
108 array(
'scroll',
'fixed')
113 $this->info[
'border-top-color'] =
114 $this->info[
'border-bottom-color'] =
115 $this->info[
'border-left-color'] =
116 $this->info[
'border-right-color'] =
129 $this->info[
'border-top-width'] =
130 $this->info[
'border-bottom-width'] =
131 $this->info[
'border-left-width'] =
185 $this->info[
'margin-top'] =
186 $this->info[
'margin-bottom'] =
187 $this->info[
'margin-left'] =
200 $this->info[
'padding-top'] =
201 $this->info[
'padding-bottom'] =
202 $this->info[
'padding-left'] =
226 $max = $config->get(
'CSS.MaxImgLength');
228 $this->info[
'width'] =
229 $this->info[
'height'] =
274 $this->info[
'border'] =
275 $this->info[
'border-bottom'] =
276 $this->info[
'border-top'] =
277 $this->info[
'border-left'] =
281 array(
'collapse',
'separate')
285 array(
'top',
'bottom')
289 array(
'auto',
'fixed')
316 array(
'nowrap',
'normal',
'pre',
'pre-wrap',
'pre-line')
319 if ($config->get(
'CSS.Proprietary')) {
323 if ($config->get(
'CSS.AllowTricky')) {
327 if ($config->get(
'CSS.Trusted')) {
331 $allow_important = $config->get(
'CSS.AllowImportant');
333 foreach ($this->info as $k => $v) {
362 $this->info[
'page-break-after'] =
393 'table-header-group',
394 'table-footer-group',
396 'table-column-group',
404 array(
'visible',
'hidden',
'collapse')
415 array(
'static',
'relative',
'absolute',
'fixed')
418 $this->info[
'left'] =
419 $this->info[
'right'] =
445 $support =
"(for information on implementing this, see the " .
447 $allowed_properties = $config->get(
'CSS.AllowedProperties');
448 if ($allowed_properties !== null) {
449 foreach ($this->info as $name =>
$d) {
450 if (!isset($allowed_properties[$name])) {
451 unset($this->info[$name]);
453 unset($allowed_properties[$name]);
456 foreach ($allowed_properties as $name =>
$d) {
458 $name = htmlspecialchars($name);
459 trigger_error(
"Style attribute '$name' is not supported $support", E_USER_WARNING);
463 $forbidden_properties = $config->get(
'CSS.ForbiddenProperties');
464 if ($forbidden_properties !== null) {
465 foreach ($this->info as $name =>
$d) {
466 if (isset($forbidden_properties[$name])) {
467 unset($this->info[$name]);