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

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

From: Rachel Andrew <rachelandrewuk@gmail.com>
Date: Wed, 17 Jun 2015 05:36:31 +0100
Cc: "www-style@w3.org" <www-style@w3.org>
Message-Id: <974AC760-C37A-4375-BA29-84687A674A55@gmail.com>
To: fantasai <fantasai.lists@inkedblade.net>
> 
> So with some prompting from Rachel Andrews I finally did that today. :)

very happy to see this.

> 
> 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.

I agree.

> 
>  Issue 2: Should we have a shorthand? What should it be called?
>           ('border-spacing' is unavailable because it inherits)
> 
>    Please go ahead and bikeshed this one…

I prefer grid-gap to track-gap (as suggested in other comments) based on the current spec as the properties control the entire grid. There were earlier discussions - and I believe why this was originally punted to level 2 - around wether authors would want to be able to specify gutters of differing widths. I’ve not really come up with a good use case for that, but if that were ever a possibility then track-gap might make more sense as we’d need to specify some sort of pattern for tracks as opposed to one column/row gap to rule them all.

> 
>  Issue 3: Should the 'grid' shorthand reset the gap properties?
> 
>    I say yes, because we want shorthands to give a "blank slate" for related
>    properties, and resetting the grid should probably also reset the gutters.


yes, I think so too.

-- 

Rachel Andrew

http://www.rachelandrew.co.uk
http://twitter.com/rachelandrew
Received on Wednesday, 17 June 2015 04:37:09 UTC

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