Skip to main content

Module grid

Module grid 

Source
Expand description

W3C CSS Grid Layout Level 2 Solver.

Constants§

MAX_GRID_TRACKS
Maximum allowable tracks in either dimension per CSS Grid Level 1 specifications (prevents unbounded memory allocation DoS on pathological or adversarial CSS).

Functions§

solve_grid
Solves W3C CSS Grid Layout Level 2 for a container and its items.
solve_grid_guarded
Solves W3C CSS Grid Layout Level 2 with an active depth guard to prevent stack overflow.
solve_grid_with_subgrid_guarded
Solves W3C CSS Grid Layout Level 2 with subgrid track inheritance and active depth guard.