문제

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