W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2020

Re: [csswg-drafts] [css-grid] Allow naming grid rows and columns and allow a grid item to span named grid areas/rows/columns... (#4892)

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Sat, 21 Mar 2020 14:08:28 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-602048339-1584799707-sysbot+gh@w3.org>
> ```css
> grid-area: B2 / C4;
> ```
> ...and this would place the item in B2, B3, B4 and also C2, C3 and C4.

This syntax already exists, and means something else. It expands to

grid-row-start: B2;
grid-row-end: B2;
grid-column-start: C4;
grid-column-end: C4;

that is, it refers to the B4 area.

Changing the meaning could break sites, and wouldn't add much benefit since you can already achieve your desired behavior with

grid-area: B2 / B2 / C4 / C4;
which means
grid-row-start: B2;
grid-row-end: C4;
grid-column-start: B2;
grid-column-end: C4;

GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4892#issuecomment-602048339 using your GitHub account
Received on Saturday, 21 March 2020 14:08:30 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:02 UTC