PHP-CSS-Parser
PHP-CSS-Parser copied to clipboard
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
Simple expressions do not seem to be parsed. Example: ```CSS div { height: (vh - 10); } ``` This ends up being treated as: ```CSS div {} ```
Current browsers support the *CSS Nesting Module* ([see spec](https://drafts.csswg.org/css-nesting/)). This package currently does not support it. Given the input ```css .nesting { color: hotpink; > .is { color: rebeccapurple; >...
We should have a Composer script that automatically updates the UML diagram in the README according to the class structure in `Classes/`.
https://github.com/MyIntervals/PHP-CSS-Parser/issues/510#issuecomment-1972622917
https://github.com/MyIntervals/PHP-CSS-Parser/issues/510#issuecomment-1972628778 Expanding and creating the shorthand notation is out of scope for this library. So we should remove the functionality, make all the corresponding methods a no-op and mark them...
String values had not been allowed for rules, and should not be. (Passing string values was a bug in the Emogrifier library.) @see https://github.com/MyIntervals/emogrifier/pull/1144 This reverts commit 67a6e95f8ad2c9c3d8d745f1943eda8da81383a4.
This will help us reduce some overlong type annotations in `CSSList`.