Ticket #1227 (closed enhancement: fixed)

Opened 5 years ago

Last modified 4 years ago

@import rule & stylistLoadStylesheet

Reported by: guest Owned by:
Priority: normal Milestone: 0.96
Component: Plugins Version: trunk
Severity: normal Keywords: Stylist
Cc:

Description

No css rule seems to be loaded if there's an @import rule in the external style sheet. Can Xinha::ripStylesFromCSSString read such imported rules ? Or at least ignore @import rule...

Change History

Changed 5 years ago by ray

  • status changed from new to closed
  • resolution set to fixed

rev [1031]: added some code to handle @import. Hope it works in all cases

Changed 4 years ago by gogo

changeset:1193 has a modification to this,

New boolean parameter to stylistLoadStyles, stylistLoadStylesheet, ripStylesFromCSSFile and ripStylesFromCSSString which allows to disable the reading of imports.

ripStylesFromCSSString can now handle imports also, import processing moved to this function.

Multi-level imports (imports from within imports) now also processed.

Note: See TracTickets for help on using tickets.