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: Wed, 25 Mar 2020 23:05:52 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-604133644-1585177551-sysbot+gh@w3.org>
> what is the \ for? What does that do?

It escapes the value so that it becomes a valid `<custom-ident>`. See https://drafts.csswg.org/css-syntax-3/#escaping

> why is there a 3 on every line?

Because the character `0` is U+0030, `1` is U+0031, and so on.

> And there are no square brackets at the beginning and end of each column definition?

The brackets are there. I just inserted a newline inside `<line-names>` in order to align a *-start with its matching *-end in each line. Looked better to me.

> Could I write it like this?

No, a `<custom-ident>` cannot start with a digit, https://drafts.csswg.org/css-syntax-3/#ident-token-diagram
And no, you can't have two contiguous `<line-names>`, you should merge them together.

But you could do this:
grid-template-columns: [_1_1-start] 1fr [_1_1-end _1_2-start] 1fr [_1_2-end];

GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4892#issuecomment-604133644 using your GitHub account
Received on Wednesday, 25 March 2020 23:05:55 UTC

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