pub trait StylesheetLoader {
    // Required method
    fn request_stylesheet(
        &self,
        url: CssUrl,
        location: SourceLocation,
        context: &ParserContext<'_>,
        lock: &SharedRwLock,
        media: Arc<Locked<MediaList>>,
        supports: Option<ImportSupportsCondition>,
        layer: ImportLayer
    ) -> Arc<Locked<ImportRule>>;
}
Expand description

The stylesheet loader is the abstraction used to trigger network requests for @import rules.

Required Methods§

source

fn request_stylesheet( &self, url: CssUrl, location: SourceLocation, context: &ParserContext<'_>, lock: &SharedRwLock, media: Arc<Locked<MediaList>>, supports: Option<ImportSupportsCondition>, layer: ImportLayer ) -> Arc<Locked<ImportRule>>

Request a stylesheet after parsing a given @import rule, and return the constructed @import rule.

Implementors§