Re:CSS Grid Areas
by sapling-ginger on Friday August 16, 2024 @04:24AM
(#41264366)
The column number can be negative. 1--1 vs 1->-1 vs 1/-1 ?
[ Parent
| on HN ]
a:b is almost universal as a range designator at this point. / is a _terrible_ choice, especially in a context where a fractional value would also make sense.
That was just an objectively bad syntax choice, but probably keeping on track with CSS.
Don't you think : is already used for something else in CSS?
making excuse is easy, here is another one 1..3
Re:CSS Grid Areas
by mixmastamyk on Friday August 16, 2024 @12:39PM
(#41267952)
And what’s wrong with whitespace? Like every other property.
range(1, 3) might be more consistent, it's a single value that is a range and not 2 values.
On a side note: a problem with CSS' claim to be a programming language is that the grammar is not obvious.
Re:CSS Grid Areas
by mixmastamyk on Friday August 16, 2024 @06:41PM
(#41271035)
A single value is a choice, two values as well.