W3C home > Mailing lists > Public > www-style@w3.org > February 2012

Re: [css3-grid-layout] semantic zoom in grid's templates

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 24 Feb 2012 16:21:59 -0800
Message-ID: <CAAWBYDC6ik-FvhXJjvQzKKdp11BrjXESbdpcnNDK5HX1+2f=ow@mail.gmail.com>
To: Fran├žois REMY <fremycompany_pub@yahoo.fr>
Cc: Phil Cupp <pcupp@microsoft.com>, CSS 3 W3C Group <www-style@w3.org>
On Fri, Feb 24, 2012 at 4:13 PM, Fran├žois REMY <fremycompany_pub@yahoo.fr>
wrote:
> Okay, let's say I'm the only alien on earth who thinks like that (or, at
> least, it seems we're very few to be infiltrated in the human being right
> now). [;-)]
>
> This is not that an issue since I'm not talking about personnal tastes
here,
> but about usability and maintainability. My proposal is the only one to
keep
> changes in the code small when doing small changes in the layout, and I
> still think that it's the only one to provide easy grid composition (ie:
> replace a cell or a group of cells by another grid template), which I
> believe is an important feature for any grid layout. Another huge win is
> that it's by far the most condensed way to define things (in terms of
bytes)
> which means it will need fewer bandwith to send the CSS over the network.
>
> I'm really curious about what kind of solution you have to propose to my
> 3-steps grid template evolution. To me, it seems the two solutions we can
> use today aren't that great in such case. Both will require a computer
work
> or, worse, many handwork.

I don't believe the benefit of the template is that it keeps code changes
small.  It's that it makes the gross layout of an element immediately
obvious from visual inspection.  If this means that it's somewhat more
difficult to incrementally edit, that's fine.

My solution to your edits would be:

1)
"abx"
"aby"

2)
"abxr"
"abxr"
"abxt"
"abyt"
"abyu"
"abyu"

3)
"abxrs"
"abxrs"
"abxtt"
"abytt"
"abyuu"
"abyuu"

The 1->2 transition requires a bit of typing, but it took me literally
about 30 seconds to do so.  The 2->3 transition required even less, since I
was just adding 6 characters.

~TJ
Received on Saturday, 25 February 2012 00:22:46 GMT

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