wgpu-html
GPU-accelerated HTML/CSS renderer for Rust.
Quick Links
- Quick Start Guide — get a window on screen in 30 lines
- CSS Property Index — all supported CSS properties
- vs RmlUI Comparison — see how wgpu-html stacks up
- GitHub
What is wgpu-html?
A Rust library that parses HTML and CSS, computes layout (block, flexbox, grid), shapes text, and paints everything to a GPU-backed display list via wgpu. Zero JavaScript — ever.
Architecture
HTML/CSS string
→ Parser (tokenizer + tree builder + CSS parser)
→ Style (cascade + inheritance + UA defaults)
→ Layout (block flow + flexbox + grid + inline)
→ Paint (DisplayList of quads + glyphs + images)
→ Renderer (GPU via wgpu)