Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Question about CSSTidy

Tags:

css

php

csstidy

In opposite to most other CSS parsers, no regular expressions are used and thus CSSTidy has full CSS2 support and a higher reliability.

I wonder why CSSTidy built their own parser and not utilized the official SAC API (which also includes support for the new CSS3)? Is there any technical or practical reason for not using SAC and writing your own parser? Infact, there're NO css tools right now that use SAC, I wonder why?

like image 600
eozzy Avatar asked Dec 13 '25 12:12

eozzy


2 Answers

The latest release of CSSTidy is July 19, 2007. I bet the SAC-API is much newer. I'd like to see someone do a PHP port of SAC-API.

like image 82
anarkhos Avatar answered Dec 16 '25 10:12

anarkhos


Tools like CSSTidy need to be able to handle the non-compliant code that shows up in the real world. Official standards implementations usually aren't very good at that.

like image 30
Tom Clarkson Avatar answered Dec 16 '25 09:12

Tom Clarkson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!