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) { $background = new Background(CSSBackgroundColor::parse($value), CSSBackgroundImage::parse($value, $pipeline), CSSBackgroundRepeat::parse($value), CSSBackgroundPosition::parse($value)); return $background; }
function parse($value) { if ($value === 'inherit') { return CSS_PROPERTY_INHERIT; } $value = CSSBackgroundPosition::parse_in($value); return new BackgroundPosition($value[0][0], $value[0][1], $value[1][0], $value[1][1]); }
function parse($value) { $value = CSSBackgroundPosition::parse_in($value); return new BackgroundPosition($value[0][0], $value[0][1], $value[1][0], $value[1][1]); }