W3C home > Mailing lists > Public > www-style@w3.org > April 2014

[css-grid] Grid Layout Algorithm Rewritten!

From: fantasai <fantasai.lists@inkedblade.net>
Date: Fri, 18 Apr 2014 10:16:38 -0700
Message-ID: <53515DF6.9000403@inkedblade.net>
To: "www-style@w3.org" <www-style@w3.org>, Phil Cupp <pcupp@microsoft.com>, Peter Salas <psalas@microsoft.com>, Rossen Atanassov <Rossen.Atanassov@microsoft.com>
Hi everyone!
Tab and I just finished rewriting the Grid Layout algorithm
to be easier to read and understand. Note: our goal was to
not actually change anything. But we think it's much better
now, and would appreciate review, especially from the MSFT
people.

Here's a direct link to the new algorithm:
   http://dev.w3.org/csswg/css-grid/#layout-algorithm
Here's Tab's "translation" of the old algorithm:
   http://dev.w3.org/csswg/css-grid/#translated-algo
Here's the old algorithm:
   http://www.w3.org/TR/2014/WD-css-grid-1-20140123/#layout-algorithm

We did make one change, which is to better handle sizing
under a min-content constraint. That's called out as an
issue in this section:
   http://dev.w3.org/csswg/css-grid/#algo-init

We'll probably want to publish an updated WD soonish, but
want to make sure people have whatever time they need to
look it all over before we ask for publication.

~fantasai
Received on Friday, 18 April 2014 17:17:06 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:21 UTC