protected function coerceColor($value)
{
switch ($value[0]) {
case "color":
return $value;
case "keyword":
$name = $value[1];
if (isset(self::$cssColors[$name])) {
@(list($r, $g, $b, $a) = explode(',', self::$cssColors[$name]));
return isset($a) ? array('color', (int) $r, (int) $g, (int) $b, (int) $a) : array('color', (int) $r, (int) $g, (int) $b);
}
return null;
}
return null;
}