Expand description
Browser Integration
End-to-end convenience functions and conformance tests that exercise the full pipeline: HTML tokenization, DOM construction, CSS parsing, style resolution, layout computation, and pixel painting.
Functions§
- count_
layout_ boxes - Count layout boxes in the tree
- count_
unique_ colors - Count the number of unique colors in a pixel region
- find_
layout_ box_ by_ tag - Find a layout box with a specific tag (for test inspection)
- parse_
html - Parse HTML and return the Document for inspection
- region_
contains_ color - Check if a pixel region contains a specific color
- region_
is_ solid_ color - Check if a pixel region is entirely one color
- render_
html - Render an HTML string to a pixel buffer
- render_
html_ with_ css - Render HTML with an external CSS string to a pixel buffer
- render_
to_ display_ list - Render HTML and return (layout, display_list) for inspection
- render_
to_ layout - Render HTML and return the layout tree (for inspection)