This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

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/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-20 20:30 UTC by Phil Cupp
Modified: 2015-03-03 00:59 UTC (History)
2 users (show)

See Also:


Attachments

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:
http://lists.w3.org/Archives/Public/www-style/2012Feb/0991.html
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:

http://lists.w3.org/Archives/Public/www-style/2012Feb/1225.html
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:
http://dev.w3.org/csswg/css-grid/#auto-placement-algo

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