W3C home > Mailing lists > Public > www-style@w3.org > November 2010

Re: [css3-grid-align] -- proposed new grid layout module

From: François REMY <fremycompany_pub@yahoo.fr>
Date: Mon, 1 Nov 2010 11:11:36 +0100
Message-ID: <0A6E2E577317463581491F663A53C1B7@FREMYD2>
To: "Andrew Fedoniouk" <news@terrainformatica.com>, "Alex Mogilevsky" <alexmog@microsoft.com>, <www-style@w3.org>
?It seems you kinda solved the char range problem with your numbered slots. 
Well thought. Still, it's pretty difficult to modify the layout dynamicly 
due to the complexity of the template string parsing (see later in this 
mail).

BTW, when I spoke about 'grid' implementation, I wasn't speaking about CSS. 
I was thinking to WPF/Silverlight [1], Java [2], and similar UI builders.

As for the 'why would you use grid and not a table' question, I think the 
application is immediate. Imagine you would like to build an Excel Web App, 
you don't want to define a 80000*10000 table, even with a script. With a 
Grid layout, you can only fill the cells which are non-empty. I don't think 
you can with the template proposal (you still need a pretty huge template 
definition).

Also, with the Grid proposal, it's easy to merge two cells (you just need to 
take one cell and set 'grid-row-span' to 2). With a template, you would need 
to parse your entire template string, make the right adjustement and then 
have the browser reparse your string entirely.

To conclude, I don't say the template proposal is not usable, but I argue 
it's only suitable for case where the number of elements is relatively 
small, and not likely to change.

Regards,
François

[1] http://wpftutorial.net/GridLayout.html
[2] 
http://download.oracle.com/javase/1.4.2/docs/api/java/awt/GridLayout.html 
Received on Monday, 1 November 2010 10:12:15 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:34 GMT