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

On 06/16/2015 03:51 AM, Javier Fernandez wrote:
> Hi,
>
> On 06/16/2015 03:44 AM, fantasai wrote:
>> So with some prompting from Rachel Andrews I finally did that today. :)
>>
>
> I think this addition is great, just mention that a similar effect can
> be done via Content Distribution alignment, but having something to add
> directly to the grid syntax would be more powerful, indeed.

Sure, the difference though is that Content Distribution distributes only
free space, whereas this is a fixed length.

>> Except, as per usual, I ran into some issues.
>>
>> http://dev.w3.org/csswg/css-grid-1/#gutters
>>
>>    Issue 1: Should 'normal' (the initial value of 'row-gap') compute to '0'?
>>
>>      I say yes, since this would be simpler for authors. Other opinions
>> welcome.
>
> Yes, I agree it'd be the best option. I wonder, though, which effect it
> would have an 'auto' value for this property. I mean, trying not to be
> redundant with Content Distribution alignment.

The gaps are just fixed lengths. Content Distribution distributes free
space. It's kindof like 'letter-spacing' and 'text-align: justify' --
space between letters is the sum of both effects.

> Should we have any overflow handling logic for these gaps ? Perhaps
> something similar to what Box Alignment provides, so we can reduce
> proportionally all gaps to fit in container's size.

No, I don't think so. The gap should just be a minimum, and you can
add alignment on top of that. Just like margins.

~fantasai

Received on Tuesday, 16 June 2015 18:09:55 UTC