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

> 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:
```css
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