4 ms·
Both Android (ConstraintLayout) and iOS (Auto Layout) use Cassowary. Why not just implement this with CSS as well so we can use the same layout tech for every p
by rvanmil 10y ago
Both Android (ConstraintLayout) and iOS (Auto Layout) use Cassowary. Why not just implement this with CSS as well so we can use the same layout tech for every platform?
- aocvr 10y agoThe projects listed here under "Web" try to achieve that: http://overconstrained.io/ http://overconstrained.io/
- asurma 10y agoAthor here :) I totally feel you, and that is what Houdini’s Custom Layout is going to be about: https://github.com/w3c/css-houdini-drafts/blob/2b730220b2f3c26ec67445d1f96765ebb855421a/css-layout-api/EXPLAINER.md https://github.com/w3c/css-houdini-drafts/blob/2b730220b2f3c... I want to write a blog post about constraing based layouts on the web specifically, but the TL;DR on why we don’t have it already: Standardization is hard. It’s especially hard to reach consensus when: * the runtime for a layout algorithm is hard to estimate * it can _fail_ (which is unprecedented in CSS) * a new syntax for constrains would have to be defined.