Web Platform session by Dan Tocchini of The Grid, recorded March 13, 2014 at Fluent Conf in San Francisco.
GridStyleSheets.org/
thegrid.io/
GSS Screencast for Net Magazine: vimeo.com/99873002
Web developers are expected to build increasingly sophisticated UIs faster, cheaper, with tools that have not evolved with the times. Why is the trivial task of centering an element with CSS so obtusely complex? CSS layout primitives are not expressive enough – it doesn’t really matter that some div is 720px wide – what matters is how it relates to other elements in the layout. WTF, why can’t we position & size elements relative to each other, not just relative to their positioned parents? For more than a decade, web developers have been asking for this, but the W3C has refused to tackle the engineering problems with the “cyclic dependencies” that naturally arise in relative layout logic. Sounds like a classic Constraint Satisfaction Problem – JavaScript to the rescue!
Let’s get down and dirty with Grid Style Sheets (GSS), a new preprocessor & runtime that replaces the browser’s layout engine with one that harnesses the Cassowary Constraint Solver — the same algorithm Apple uses to compute native layout.
Session Info:
fluentconf.com/fluent2014/public/schedule/detail/35517
Slides:
cdn.oreillystatic.com/en/assets/1/event/106/GSS%20-%20Layouts%20Not%20Possible%20Even%20with%20Tomorrow_s%20CSS%20Using%20Polyfills%20from%20the%20Future%20Presentation.pdf