Controlling the @import rule
Pure Java HTML / CSS rendering engine
Status: Beta
Brought to you by:
radkovo
As given in the manual:
//do not import any style sheets automatically CSSFactory.setAutoImportMedia(new MediaSpecNone());
This doesn't work when no media rule is specified for the import.
For example:
@import url('basics.css');
always tries to load 'basics.css'
Anonymous
Hopefully fixed in git master version. Thanks for reporting this.
I saw your changes, but jStyleParser still seems to issue a URL fetch for the import. I can't verify if, after importing, the stylesheet is actually applied or not, as the URL fetch fails in my case (because of my network configuration).