That's a great question! Here is a simple example of a grid layout:
https://i.sstatic.net/QDg69.png
In traditional CSS grid layouts, columns can be referenced by start and end line numbers like this:
grid-column: 2 / 4;
However, it could have been equally valid to specify column numbers instead:
grid-column: 2 / 3;
The methods for defining columns would still work in the same way:
grid-column: 2 / -1;
grid-column: 2 / span 2;
The choice between referencing grid lines versus tracks (rows and columns) only becomes significant when trying to reference the last row or column from a starting point, leading to potential off-by-one errors.
So why did the W3C opt for lines over tracks? The answer lies in The Story of CSS Grid, from Its Creators, an article on A List Apart.
Peter Linss, Co-Chair of the CSS Working Group, proposed including the concept of grid lines in the spec to make it more intuitive for designers.
Rossen Atanassov, Editor of the spec at Microsoft, shared insights on combining app-centric models with traditional graphic design grids based on lines for a seamless implementation.
In essence, the decision to use grid lines aimed to bridge the gap between different design perspectives for the benefit of all users. While some may find the adoption of one-based addressing and grid lines unusual, it ultimately enhances the versatility and functionality of CSS grid layouts.