Walk a live DomTree, compute each element's style (tag UA defaults plus inline style), build a taffy layout tree, and return border-box geometry keyed by NodeId. Block/flex structure, explicit sizes, and the box model are correct; text nodes do not yet contribute to size (inline/text layout lands with the paint phase). This completes the layout core: a real DOM now produces real geometry, pure Rust, behind the opt-in render crate. JS exposure is next.
15 lines
386 B
TOML
15 lines
386 B
TOML
[package]
|
|
name = "obscura-render"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
description = "Optional scoped render layer for Obscura: layout (taffy) and, with the paint feature, text and raster output for screenshots."
|
|
|
|
[dependencies]
|
|
taffy = { workspace = true }
|
|
obscura-dom = { workspace = true }
|
|
|
|
[lib]
|
|
path = "src/lib.rs"
|