Menu

#43 Controlling the @import rule

closed
nobody
None
1
2015-02-11
2014-07-21
mercury
No

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'

Discussion

  • Radek Burget

    Radek Burget - 2014-07-29
    • status: open --> accepted
     
  • Radek Burget

    Radek Burget - 2014-07-29

    Hopefully fixed in git master version. Thanks for reporting this.

     
    • mercury

      mercury - 2014-09-06

      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).

       
  • Radek Burget

    Radek Burget - 2015-02-11
    • status: accepted --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.