23        $this->
info[
'background-color'] = 
$def->info[
'background-color'];
 
   24        $this->
info[
'background-image'] = 
$def->info[
'background-image'];
 
   25        $this->
info[
'background-repeat'] = 
$def->info[
'background-repeat'];
 
   26        $this->
info[
'background-attachment'] = 
$def->info[
'background-attachment'];
 
   27        $this->
info[
'background-position'] = 
$def->info[
'background-position'];
 
   48        $bits = explode(
' ', $string); 
 
   51        $caught[
'color'] = 
false;
 
   52        $caught[
'image'] = 
false;
 
   53        $caught[
'repeat'] = 
false;
 
   54        $caught[
'attachment'] = 
false;
 
   55        $caught[
'position'] = 
false;
 
   59        foreach ($bits as $bit) {
 
   63            foreach ($caught as 
$key => $status) {
 
   64                if (
$key != 
'position') {
 
   65                    if ($status !== 
false) {
 
   75                if (
$key == 
'position') {
 
   76                    if ($caught[
$key] === 
false) {
 
   91        if ($caught[
'position'] !== 
false) {
 
   92            $caught[
'position'] = $this->
info[
'background-position']->
 
   97        foreach ($caught as $value) {
 
   98            if ($value === 
false) {
 
  107        return implode(
' ', 
$ret);
 
An exception for terminatinating execution or to throw for unit testing.
Validates shorthand CSS property background.
validate($string, $config, $context)
$info
Local copy of component validators.
Base class for all validating attribute definitions.
parseCDATA($string)
Convenience method that parses a string as if it were CDATA.
mungeRgb($string)
Removes spaces from rgb(0, 0, 0) so that shorthand CSS properties work properly.