Expand description
CSS parsing and computed-style layer for takumi.
Holds the (cold) CSS parsing, cascade, and value types so they can be
compiled independently from the hot rendering paths in takumi. Selector
matching against the node tree lives in takumi (layout::matching),
not here, keeping this crate free of any node/render dependency.
Re-exports§
pub use style::*;
Modules§
Structs§
- Viewport
- The viewport for the image renderer.
- Viewport
Size - Represents Viewport size
Constants§
- DEFAULT_
DEVICE_ PIXEL_ RATIO - The default device pixel ratio.
- DEFAULT_
FONT_ SIZE - The default font size in pixels.