سؤال

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