|
|
|
|
|
by c-smile
546 days ago
|
|
Correct CSS grid layout calculation is about solving system of equations and constraints. In simple cases, when there are no spanned cells (like in flexbox), it can be done relatively trivially. Otherwise solving that system is far from being trivial, you will need simplex solver or the like, for example https://constraints.cs.washington.edu/solvers/cassowary-toch... |
|
1: https://www.w3.org/TR/css-grid-1/#algo-content