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

Re: [css3-grid-layout] grid-column-span: auto

From: Alexander Shpack <shadowkin@gmail.com>
Date: Sat, 25 Feb 2012 01:50:57 +0200
Message-ID: <CAK4xKXnBqFZpbZEqE9NXnuECewyESbS0QVNRsdpGkcurfSiatQ@mail.gmail.com>
To: François REMY <fremycompany_pub@yahoo.fr>
Cc: Alex Mogilevsky <alexmog@microsoft.com>, Daniel Glazman <daniel.glazman@disruptive-innovations.com>, mmielke@microsoft.com, pcupp@microsoft.com, CSS 3 W3C Group <www-style@w3.org>
On Fri, Feb 24, 2012 at 7:08 PM, François REMY
<fremycompany_pub@yahoo.fr> wrote:
> Dear CSS Grid Layout editors,
>
> Based on the discussion I had with Alexander Shpack on the list, there are
> some things I would like to see added in the spec, or at least debated with
> you. Some aren’t related to what was discussed specifically, but I took the
> initiative to put Alexander in CC anyway. To keep things simple, I’ll send
> one mail by feature. This mail concerns the addition of “grid-*-span: auto”.
>
>
>
> Suppose I have a grid defined like this :
>
> <div id=”grid”>...<div class=”tile”>Some content</div>...</div>
> #grid { grid-columns: repeat(100px); grid-rows-sizing: 100px; grid-flow:
> columns; }
> #grid > div.tile { background: #333; margin: 10px; padding: 10px; color:
> white; }
>
> Now, imagine that some tiles contains more text than some other, and that I
> would like to get a result close to what you can see in the image I attached
> to this mail. I propose to add a “grid-row-span: auto” and a
> “grid-column-span: auto” values. Those values have the following effect:

[as] What happens if my content contains only two blocks, but both
will have very large content. And what happens if #grid will have both
declarations at same time:  “grid-row-span: auto” and
“grid-column-span: auto”?
Received on Friday, 24 February 2012 23:51:25 GMT

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