A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/w3c/csswg-drafts/issues/1280 below:

Usage of "grid" instead "grid-template" shorthand in section 7.1 ? · Issue #1280 · w3c/csswg-drafts · GitHub

Editorial:
Please explain why CSS Grid Layout editors usage of "grid" instead of "grid-template" shorthand in section 7.1?

The first paragraph of Section 7.1 says:

The three properties grid-template-rows, grid-template-columns, and grid-template-areas together define the explicit grid of a grid container. The grid property is a shorthand that can be used to set all three at the same time.

Please note what is written in the second sentence:

grid property is a shorthand that can be used to set all three at the same time.
( I used bold text to high light a question I have.)

Question:
Can "grid-template" property be used to set all three at the same time?

I am interested in the editors answer. I believe the answer is : yes

So what is the purpose of not using "grid-template" over "grid"?

I believe "grid-template" would be more appropriate. The "grid" property makes changes other properties (gutter property), which "grid-template" does not do.

I would like to point out another reason for my confusion:
"grid-template" property definition is located in section labeled:
7.4. Explicit Grid Shorthand: the grid-template property

The grid-template property is a shorthand for setting grid-template-columns, grid-template-rows, and grid-template-areas in a single declaration.

It just seems like the editors are casually saying use "grid" property because it does the job and not pointing out the "grid" property changes things you might not want changed. Where using "grid-template" does just one thing really well with out changing any thing else.

I would like to propose two ways to rewrite the second sentence in Section 7.1:

  1. The grid-template is a shorthand property that can be used to set all three at the same time.
  2. The grid-template and grid are shorthand properties that can be used to set all three at the same time.

A change that includes "grid-template" would really help the readability of the Module and help explain the flexibility and possible issues of using shorthand properties.

Thank you for all your hard work and allowing the public to see and comment on the work at the W3C.

Robert DiBlasi
We all learn by sharing what we know


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3