Expand description
CSS layout heuristics — detects page structure (navbar, sidebar, footer, main) to improve content extraction accuracy.
Structs§
- Layout
Element - 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.