15 $def = $config->getCSSDefinition();
16 $this->info[
'border-width'] = $def->info[
'border-width'];
17 $this->info[
'border-style'] = $def->info[
'border-style'];
18 $this->info[
'border-top-color'] = $def->info[
'border-top-color'];
21 public function validate($string, $config, $context) {
24 $bits = explode(
' ', $string);
27 foreach ($bits as $bit) {
28 foreach ($this->info as $propname => $validator) {
29 if (isset($done[$propname]))
continue;
30 $r = $validator->validate($bit, $config, $context);
33 $done[$propname] =
true;
Base class for all validating attribute definitions.
validate($string, $config, $context)
$info
Local copy of properties this property is shorthand for.
parseCDATA($string)
Convenience method that parses a string as if it were CDATA.
Validates the border property as defined by CSS.
mungeRgb($string)
Removes spaces from rgb(0, 0, 0) so that shorthand CSS properties work properly.