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§
- Cell
Location - Location of a table cell within the container’s hierarchy.
- Collapsed
Border Edge - A resolved or candidate border edge in the collapsing border model (CSS 2.1 §17.6.2).
- Table
Border Grid - 2D grid matrix storing resolved collapsed borders and boundary coordinates (CSS 2.1 §17.6.2).
Enums§
- Element
Source - 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.