function parse($value, &$pipeline)
 {
     if ($value === 'inherit') {
         return CSS_PROPERTY_INHERIT;
     }
     $background = new Background(CSSBackgroundColor::parse($value), CSSBackgroundImage::parse($value, $pipeline), CSSBackgroundRepeat::parse($value), CSSBackgroundPosition::parse($value), CSSBackgroundAttachment::parse($value));
     return $background;
 }
 function parse($value, &$pipeline)
 {
     global $g_config;
     if (!$g_config['renderimages']) {
         return CSSBackgroundImage::default_value();
     }
     // 'url' value
     if (preg_match("/url\\((.*[^\\\\]?)\\)/is", $value, $matches)) {
         $url = $matches[1];
         $full_url = $pipeline->guess_url(css_remove_value_quotes($url));
         return new BackgroundImage($full_url, Image::get($full_url, $pipeline));
     }
     // 'none' and unrecognzed values
     return CSSBackgroundImage::default_value();
 }
 function parse($value, &$pipeline)
 {
     $background = new Background(CSSBackgroundColor::parse($value), CSSBackgroundImage::parse($value, $pipeline), CSSBackgroundRepeat::parse($value), CSSBackgroundPosition::parse($value));
     return $background;
 }