W3C home > Mailing lists > Public > www-style@w3.org > June 2015

Re: [css-grid] row-gap/column-gap issues

From: Manuel Rego Casasnovas <rego@igalia.com>
Date: Wed, 17 Jun 2015 15:46:20 +0200
Message-ID: <55817A2C.6040009@igalia.com>
To: www-style@w3.org
On 17/06/15 02:00, fantasai wrote:
> On 06/16/2015 06:10 PM, Manuel Rego Casasnovas wrote:
>>
>> Anyway, I think the spec needs an extra modification in the grid sizing
>> algorithm. I guess that the gutters should be subtracted when we
>> calculate the size of the flexible tracks.
>> For example, if you've a grid with "width: 500px; column-gap: 100px;
>> grid-template-columns: 1fr 1fr;", I guess that the columns should have
>> "200px" width.
> 
> I just wrote that the gaps are treated as fixed-size tracks for the purpose
> of track sizing. Is that not enough?

Yeah, didn't realize about that sentence. That should work fine.
Maybe it'd be nice to add a note on the algorithm itself to avoid any
oblivion there.

Bye,
  Rego
Received on Wednesday, 17 June 2015 13:47:03 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:54 UTC