Skip to main content

kozan_core/html/
html_body_element.rs

1//! `HTMLBodyElement` — the document body.
2//!
3//! Chrome equivalent: `core/html/html_body_element.h`.
4//! Default styles come from the UA stylesheet: `body { display: block; margin: 8px; }`.
5
6use kozan_macros::Element;
7
8use crate::Handle;
9
10/// The document body element (`<body>`).
11///
12/// Created automatically by `Document::new()`. All user content
13/// goes inside `doc.body()`, not `doc.root()`.
14#[derive(Copy, Clone, Element)]
15#[element(tag = "body")]
16pub struct HtmlBodyElement(Handle);