rustmotion_core/css/mod.rs
1//! CSS-like styling system for the browser-mode renderer.
2//!
3//! Inspired by Remotion (React inline styles) and CSS box model.
4//! Provides:
5//! - `CssStyle`: a struct mirroring the CSS properties supported by the engine
6//! - `units`: parsing/resolution of CSS lengths (px, %, em, rem, vw, vh, fr, auto)
7//! - `cascade`: parent → child inheritance pass
8//! - `taffy_bridge`: conversion `CssStyle` → `taffy::Style` for layout
9//!
10//! Layout is computed by [`taffy`]; paint is done by Skia in `engine::paint_pass`.
11
12pub mod animation;
13pub mod cascade;
14pub mod style;
15pub mod taffy_bridge;
16pub mod units;
17
18pub use animation::apply_animated_props;
19pub use style::CssStyle;
20pub use units::{Length, LengthContext, LengthPercentage};