A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/w3c/csswg-drafts/issues/1137 below:

[css-grid] grammar of grid-row-start and friends is ugly and harms value space for line names · Issue #1137 · w3c/csswg-drafts · GitHub

Ref: https://drafts.csswg.org/css-grid/#line-placement

I am currently implementing editing support for CSS grids in BlueGriffon and I must say the "span" keyword that can appear in the values of grid-row-start, grid-column-start, grid-row-end and grid-column-end is very ugly, and painful in terms of UX in a content editor. It also requires the following provision in the prose:

In all the above productions, the custom-ident additionally excludes the keyword span.

and given the richness of the CSS grammar, I am surprised we ended up with such a restriction of the value space of line names.
Can't we do better that, and instead of

grid-row-start: span 3 myline

have (that's only an example, many other options are possible)

grid-row-start: (3 myline)

I think it's not only cosmetic. The parser for these properties' values will be a bit simpler, line names will suffer no restriction, and my content editor will not have to exclude one single word without explanation. Even with an explanation, the exclusion of "span" just for the grammar of these properties seems a failure, IMHO.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3