Expand description

CSS style sheets and style attributes.

A StyleSheet represents a .css file or <style> element in HTML. A StyleAttribute represents an inline style attribute in HTML.


pub use crate::printer::PrinterOptions;
pub use crate::printer::PseudoClasses;


Options for the minify function of a StyleSheet or StyleAttribute.

CSS parsing options.

An inline style attribute, as in HTML or SVG.

A CSS style sheet, representing a .css file or inline <style> element.

A result returned from to_css, including the serialize CSS and other metadata depending on the input options.