tinycss2
tinycss2 copied to clipboard
A tiny CSS parser
Hi, thank you for your work on **tinycss2** and **WeasyPrint**. As i would be very happy to see CMYK support in the future i took a closer look at the...
(Current code is in the `color4` branch.) The primary change, compared to CSS Color 3, is that CSS colors are no longer restricted to the narrow gamut of sRGB. To...
I'm not 100% sure what the extra empty comments are for in the serializer (something about BAD_PAIRS it seems, whatever they are): https://github.com/Kozea/tinycss2/blob/0268a6076040a7068c41c38ff513e07d754fc83d/tinycss2/serializer.py#L111 These seem to get added in the...
Hello! As you may have noticed, there was some activity on the repo. But no release. Some "the project is no longer maintained by Kozea". But who? So today is...
This serializer could be used by a CSSOM serializer. Related to #40.
Fix #47.
Last commit in https://github.com/gsnedders/python-webencodings was+7 years ago. ```console [tkloczko@pers-jacek tinycss2-1.3.0]$ grep -r webencodings docs/first_steps.rst:This will also automatically install tinycss2’s only dependency, webencodings_. docs/first_steps.rst:tinycss2 and webencodings both only contain Python code...
Right now, it appears that using tinycss2 requires feeding the entire CSS file into the parser. A streaming API (similar to html.parser) would allow applications to avoid buffering and the...
It would be nice to allow walking the AST even in code that does not understand all the node types, for example to: - gather all `ParseError` nodes - gather...
- [ ] [color-mix()](https://www.w3.org/TR/css-color-5/#color-mix) - [ ] [relative color functions](https://www.w3.org/TR/css-color-5/#relative-color-function)