Re: [csswg-drafts] [css-grid] Implicit named grid areas don't work properly with indexes

> Correct and intentional. The "area" syntax was designed explicitly with the assumption that there's only a single area of a given name. There's no good notion of what the "third area named icon" is in a 2d context; while we could just evaluate each axis independently, that's not guaranteed to match up with your actual intended areas at all!

My fundamental point is that areas don't actually exist, they're just syntactic sugar for named lines. Since you can have multiple lines with the same name, then by definition you can have multiple areas with the same name (despite the fact that you can't create them via the grid-template-areas syntax).

Having a declaration of:

    grid-column: icon;

is morally equivalent to:

   grid-column: icon-start / icon-end;

Therefore:

    grid-column: icon 3;

should be equivalent to:

    grid-column: icon-start 3 / icon-end 3;

(I accept the the "grid-area: icon 3;" from my example shouldn't work with the example grid template because it should be equivalent to: "grid-area: icon-start 3 / icon-end 3 / icon-start 3 / icon-end 3;")

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

Received on Wednesday, 24 October 2018 08:47:28 UTC