[csswg-drafts] [css-grid-2] Clarification on explicit placement order vs. implicit grid line creation (#11771)

gitspeaks has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-grid-2] Clarification on explicit placement order vs. implicit grid line creation ==
In [8.5. Grid Item Placement Algorithm](https://drafts.csswg.org/css-grid-2/#auto-placement-algo), I'm confused about the separation between the placement of items (in step 1, "Position anything that’s not auto-positioned") and the creation of implicit grid lines (in step 3, "Determine the columns in the implicit grid.", subsection 2).

Step 1 appears to include explicitly placed grid items that might reference grid line numbers outside the bounds defined by the explicit grid template.

Then, in step 3.2, the algorithm generates implicit grid lines based on all items with a definite column position (including those explicitly placed in step 1).

My confusion comes from how an item can be positioned using a grid line number that hasn't been "materialized" yet. Is it intentional that items can be positioned using these numbers before the corresponding implicit grid lines are created? If so, could the spec clarify the difference between using a grid line number as a placement reference and the later "materialization" of that grid line in the implicit grid?

A similar question applies to Step 2 "Process the items locked to a given row". If grid items may reference row grid lines outside the explicit grid template. How is it handled if the referenced rows haven't been generated yet? 

Thanks!

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11771 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 25 February 2025 00:04:21 UTC