4 ms·
What are your thoughts on CSS Grid? Does it require multiple passes?
by irrational 6y ago
What are your thoughts on CSS Grid? Does it require multiple passes?
- c-smile 6y agoIf the question is about layout computation then CSS Grid layout (and ideally <table> layout) is a typical LP task [1]. And there are known way of solving these things, e.g. simplex methods or Cassowary constraint solver (CCS)[2] will work. In fact flexbox layout is a particular case of LP task and also can be solved by CCS efficiently. [1] https://en.wikipedia.org/wiki/Linear_programming https://en.wikipedia.org/wiki/Linear_programming [2] https://en.wikipedia.org/wiki/Cassowary_(software) https://en.wikipedia.org/wiki/Cassowary_(software)
- andrewmcwatters 6y agoI have not made any website or UI designs which require it, so I'm not experienced enough with it to say. As a result, I also have not made attempts to implement it. c-smile is a well known implementor in the space, and his comments are valuable as well.