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;