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 U+0030

That's the code that represents the digit zero in Unicode, https://unicode.org/cldr/utility/character.jsp?a=0030

> how could I go about transforming this monstrosity: `D\#\/Eb1-start` into this: `D#1`

You don't. You transform your API-exposed `D#1` into the desired internal value instead. In JS you have `CSS.escape`.

Though it would be easier to use `C-sharp-1` instead. Or if you liked Unicode, `C♯1`, with a proper U+266F music sharp sign `♯` instead of a U+0023 number sign `#`. Unicode beyond ASCII looks neater but it's more difficult to type and more likely to break if some program messes with the encoding.

Also, it seems that with `C#/Db1` you want to match both `C#1` and `Db1`. You should actually separate that into two lines:

```css
grid-template-rows: [C♯1-start D♭1-start] 1fr [C♯1-end D♭1-end]
```

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4892#issuecomment-610424085 using your GitHub account

Received on Tuesday, 7 April 2020 14:36:08 UTC