Bug 16044 - Correct issues (or at least document them) for auto-placement when grid-flow is not none
Summary: Correct issues (or at least document them) for auto-placement when grid-flow ...
Status: NEW
Alias: None
Product: CSS
Classification: Unclassified
Component: Grid Layout (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Phil Cupp
QA Contact: public-css-bugzilla
URL: http://dev.w3.org/csswg/css3-grid-align/
Depends on:
Reported: 2012-02-20 20:30 UTC by Phil Cupp
Modified: 2015-03-03 00:59 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Phil Cupp 2012-02-20 20:30:34 UTC
The algorithm as written is meant to be two pass:

1. first grid items that are constrained such that only one dimension is auto should be placed
2. after that all grid items having both dimensions as auto can be placed

The spec text makes it sound like steps 1 and 2 are in a single step though.

Also it isn't clear with the current algorithm whether the "base grid" onto which items are placed is updated after step one is performed for the purposes of wrapping grid items to new rows/columns.

Additionally, this algorithm may not be the optimal auto-placement algorithm.  Maybe it should be a one pass algorithm that finds the first free spot for an item beginning at 1,1, or maybe this should just be removed altogether.

Refer to this thread for some discussion on this topic:
Comment 1 Phil Cupp 2012-02-20 20:52:57 UTC
Reassigning all grid bugs to me.
Comment 2 Phil Cupp 2012-02-24 00:34:52 UTC
Here's a new thread relevant to auto placement.  If updating the algorithm, test against the use cases presented here:

Comment 3 Mats Palmgren 2015-03-03 00:59:03 UTC
There used to be an ISSUE note "Review this wrt concerns in bug 16044."
in the spec but it's no longer there in the current version:

Does that mean this bug can be closed?  Or was the ISSUE note
in the spec lost accidentally?