質問

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