Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
* {
background: url(image.png) aliceblue repeat-x center 33%;
}
$css=file_get_contents('example.css');
preg_match_all('/\b(?:color|background|border)[^:]*:(.*?);/',$css,$rule);
$value=array();
foreach ($rule[1] as $one) $value=array_merge($value,preg_split('/\s+/',$one));
$value=array_unique($value);
$value=array_filter($value,'check');
print_r($value);
function check($what)
{
$keyword=array('none','inherit','repeat','repeat-x','repeat-y','no-repeat','scroll','fixed','top','bottom','left','right','center','thin','medium','thick','hidden','dotted','dashed','solid','double','groove','ridge','inset','outset','collapse');
if (substr($what,0,1)=='#') return true;
if (strtolower(substr($what,0,3))=='rgb') return false;
if (is_numeric(substr($what,0,1))) return false;
if (substr($what,0,1)=='.') return false;
if (strtolower(substr($what,0,3))=='url') return false;
if (in_array($what,$keyword)) return false;
return true;
}
$css=file_get_contents('example.css');
preg_match_all('/#[[:xdigit:]]{3}(?:[[:xdigit:]]{3})?/',$css,$color);
print_r($color[0]);