← Back to Blog MILESTONE · 0.7.0 · BROWSER CAPSTONE

load_page — 0.7.0 Browser Capstone: HTML→Pixels in One Call

videobrowsercapstonemilestone0.7.0

load_page.sg is the 0.7.0 browser capstone — end-to-end page load from raw HTML to rendered pixels. One call: load_page(dest, pitch, fw, fh, html_ptr, html_len) orchestrates the entire pipeline: HTML tokenize → DOM build → layout → css_paint → text render → compositor → scanout.

The pipeline

raw HTML bytes
  → html_tokenize (tag/text token stream)
  → dom_build (node tree with parent/child/sibling)
  → layout_node_set (x, y, w, h positioning)
  → page_style_set (bg, border, radius, text color)
  → page_render_present (paint + composite + scanout)
  → framebuffer pixels

Test verification

Input: <h1>HELLO</h1><p>SIGIL</p><div>BOX</div>

3 DOM nodes rendered: h1 (white text, dark blue bg, 2px border), p (cyan text, green bg), div (white text, border, rounded corners). 5 pixel probes all green — border present, text rendered, backgrounds correct, outside region clean. LOADPAGE-PASS.

What this means

load_page.sg
Browser capstone — the sigilOS browser can now take raw HTML and produce rendered pixels through a complete, cap-isolated pipeline. Every stage is a separate Sigil module, wired through the compositor. GPU path is silicon-pending; software floor works today. This closes the 0.7.0 browser render pipeline sprint.