23 $this->info[
'list-style-type'] =
$def->info[
'list-style-type'];
24 $this->info[
'list-style-position'] =
$def->info[
'list-style-position'];
25 $this->info[
'list-style-image'] =
$def->info[
'list-style-image'];
43 $bits = explode(
' ', strtolower($string));
46 $caught[
'type'] =
false;
47 $caught[
'position'] =
false;
48 $caught[
'image'] =
false;
53 foreach ($bits as $bit) {
60 foreach ($caught as
$key => $status) {
61 if ($status !==
false) {
64 $r = $this->info[
'list-style-' .
$key]->validate($bit,
$config, $context);
74 if (
$key ==
'image') {
91 if ($caught[
'type']) {
92 $ret[] = $caught[
'type'];
96 if ($caught[
'image']) {
97 $ret[] = $caught[
'image'];
101 if ($caught[
'position']) {
102 $ret[] = $caught[
'position'];
108 return implode(
' ',
$ret);
Base class for all validating attribute definitions.
validate($string, $config, $context)
parseCDATA($string)
Convenience method that parses a string as if it were CDATA.
Create styles array
The data for the language used.
$info
Local copy of validators.
Validates shorthand CSS property list-style.