MyIntervals / 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
http://www.sabberworm.com/blog/2010/6/10/php-css-parser
MIT License
1.76k stars 148 forks source link

not pars some css style #755

Open masoudnkh opened 1 week ago

masoudnkh commented 1 week ago

i use php-css-parser but not coverage this code:

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background-color: rgb(240 240 240 / 10%)!important;
}

remove unused css code and good work for all code but when i exclude ".wp-block-table.is-style-stripes" the output is empty like:

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
}
oliverklee commented 1 week ago

Hi @masoudnkh, thanks for reporting this issue.

I still don't quite understand the problem. Could you please post the exact CSS you parse, the code you execute, and the CSS you get back, and the CSS you'd expect to get back? Thanks!

oliverklee commented 1 week ago

Also, could you please post which version of PHP-CSS-Parser you're using?