20 $def = $config->getCSSDefinition();
21 $this->info[
'border-width'] = $def->info[
'border-width'];
22 $this->info[
'border-style'] = $def->info[
'border-style'];
23 $this->info[
'border-top-color'] = $def->info[
'border-top-color'];
32 public function validate($string, $config, $context)
36 $bits = explode(
' ', $string);
39 foreach ($bits as $bit) {
40 foreach ($this->info as $propname => $validator) {
41 if (isset($done[$propname])) {
44 $r = $validator->validate($bit, $config, $context);
47 $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.