sabberworm/PHP-CSS-Parser — Issue #35: getAllValues() doesn't recognize color values
Author: hendra2392
Created: 2012-03-07 13:50:13+00:00
State: open

the css:
.box_pic{background: url(images/no-image) #D1B6DB center center no-repeat;}

the call:
$CssParser = new CSSParser(file_get_contents($filepath));
$CssDocument = $CssParser->parse();

echo $CssDocument;
// that one outputs:
// .box_pic {background: url("images/no-image") rgb(209,182,219) center center no-repeat;}

//but this one:
foreach ($CssDocument->getAllValues() as $value)
echo $value;
//outputs:
// url("images/no-image")centercenterno-repeaturl