Skip to main content

Module table

Module table 

Source
Expand description

W3C CSS 2.1 Chapter 17 Table Layout Engine.

Implements W3C CSS 2.1 §17.5 (Table Layout), §17.5.1 (Fixed & Auto Sizing), §17.5.2 (Auto Table Sizing Algorithm), §17.5.3 (Cell Vertical Alignment), §17.4 (Table Captions & Wrapper Box), and §17.6 (Borders: Separated vs Collapsed).

Structs§

CellLocation
Location of a table cell within the container’s hierarchy.
CollapsedBorderEdge
A resolved or candidate border edge in the collapsing border model (CSS 2.1 §17.6.2).
TableBorderGrid
2D grid matrix storing resolved collapsed borders and boundary coordinates (CSS 2.1 §17.6.2).

Enums§

ElementSource
Origin element type of a border edge in the collapsing border model. Priority order per CSS 2.1 §17.6.2.1: cell > row > row group > column > colgroup > table.

Functions§

border_style_priority
Computes the priority ranking of a border style per CSS 2.1 §17.6.2.1: ‘double’ > ‘solid’ > ‘dashed’ > ‘dotted’ > ‘none’/‘hidden’.
resolve_collapsed_border
Resolves the winning border between two conflicting edges meeting at a grid boundary (CSS 2.1 §17.6.2.1).
solve_table
Solves W3C CSS Table Layout for a table container and its rows/cells.
solve_table_guarded
Solves W3C CSS Table Layout with an active depth guard to prevent stack overflow.