Re: [csswg-drafts] [css-grid] Setting of gutter properties when using the 'grid' shorthand

You can't set the gutters via `grid` because `grid` is already a complicated grammar, and we can't reasonably squeeze the gutter settings in.  We'd prefer to avoid another repeat of `font` or `background` or `animation`.

The gutter properties are reset by `grid` for two reasons - one, it makes sense syntactically (a `foo` property almost always resets all the `foo-*` properties), and two, often when you're using `grid` it's to cleanly set up a fresh grid (that's usually why you use shorthands), and having gutters lingering from a cascaded declaration can have undesirable effects.  Yes, there are definitely cases where you do want the gutters to persist, but I don't think they're the majority case, and overall it's overridden by the syntax-consistency argument.  You can always just set the subproperties directly in the MQs.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1036#issuecomment-312335783 using your GitHub account

Received on Friday, 30 June 2017 18:06:42 UTC