I'm developing an application to parse GTK+3 themes. This application uses TinyCSS library.

It look like TinyCSS is just ignoring lines like

@define-color base_color #FAFAFA;

This definitions are in parser.styleSheets[0].errors.

How can I handle this?

有帮助吗?

解决方案

@define-color isn't a valid at-rule in standard CSS syntax. You'll have to patch TinyCSS to understand it, or else use a different parser that understands GTK's modifications to CSS.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top