Skip to main content

restyle_document

Function restyle_document 

Source
pub fn restyle_document(
    html: &str,
    sheets: &[&'static Stylesheet],
    known: &[&str],
) -> String
Expand description

Rewrite the per-class <style> elements of a rendered document (a cached static page) for a browser that already has the style ids known: only what it is missing is kept. Every per-class stylesheet rendered so far (component libraries’ too) is considered, besides sheets.