sabberworm / PHP-CSS-Parser

A Parser for CSS Files written in PHP. Allows extraction of CSS files into a data structure, manipulation of said structure and output as (optimized) CSS

Home Page:http://www.sabberworm.com/blog/2010/6/10/php-css-parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deleting any rule that doesn't declare a color

PeterKnight opened this issue · comments

I'm trying to get a copy of the css rules that contain color values, while discarding the rest.

From the examples I can infer what values are of the type color but I'm not sure how to remove the entire rule if it contains no values of the type Color. Is there a straightforward way to do that?