W3C home > Mailing lists > Public > public-css-archive@w3.org > April 2017

Re: [csswg-drafts] [css-grid] axis names

From: Javier Fernandez Garcia-Boente via GitHub <sysbot+gh@w3.org>
Date: Fri, 28 Apr 2017 14:43:06 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-298017024-1493390585-sysbot+gh@w3.org>
I'm not sure row/column terminology is that useless for Grid, really. Many of the Grid CSS properties uses these concepts (grid-template-{columns, rows}, grid-auto-{rows, columns}, grid-auto-flow: [row | column],  ...) 

Additionally, row and column axis are terms specific to the grid container, while grid items may have orthogonal inline/block axis. This is specially useful when implementing the alignment logic defined in the CSS Box Alignment specification.

https://drafts.csswg.org/css-align-3/#align-grid
> align-self Axis 	The grid’s column axis (block axis). 

Note that align-self is a grid item's property, but it operates along the **column axis**, which certainly is the block axis, but not respecting the grid item's flow direction, but grid container's one.

Even more, all this concepts are specially important when implementing Baseline Alignment, which
in the case of grid it can operate along both axis, aligning the items between themselves in both
dimensions. 

In summary, I don't see such a problem on having this grid specific terminology. It may be redundant
in some cases, but it helps to understand the behavior of grid in some other cases, probably the most
complex ones. I think it's quite similar to what Flexbox's cross and main axis provide, actually.

-- 
GitHub Notification of comment by javifernandez
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1299#issuecomment-298017024 using your GitHub account
Received on Friday, 28 April 2017 14:43:15 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 10:12:53 UTC