Skip to main content

Module layout

Module layout 

Source
Expand description

CSS layout heuristics — detects page structure (navbar, sidebar, footer, main) to improve content extraction accuracy.

Structs§

LayoutElement
A page element with CSS layout data, deserialized from the injected JS.

Constants§

VIEWPORT_HEIGHT
Default viewport height used by Servo for rendering.
VIEWPORT_WIDTH
Default viewport width used by Servo for rendering.

Functions§

selectors_to_strip
CSS selectors for elements that should be stripped before passing to readability.