-
Notifications
You must be signed in to change notification settings - Fork 686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css-display-4] reading-flow and mix of auto-flow and explicit items #11208
Comments
That seems correct. If we use |
I think this is just an example of the (eventual?) need for the ability to explicitly order children; we've steered away from that design so far because it's mostly way more specific than authors need (to the point of being harmful), but the design is open to that being added in the future. (The obvious design will be matching how 'order' works - order by explicit index first, tie-break by |
It's fine if |
Yup, agreed. |
Would the |
A very simple example is as I described previously, and you can see in this demo. This uses In something like https://webkit.org/demos/grid3/museum/ however you might want to visit that side item first (or last) but also perform To add back the property on items (which we didn't do initially but the door is open to do that), which would allow for an explicit reading-flow order to be set on some items, with any items that don't have an order set using the value as set on the parent with The other thing is, the examples like this I can think of only really apply to automatic layout methods in grid (masonry and dense packing). If that's the case, could this be part of the decision we make about automatically applying reading-flow in those layout methods? So, with masonry for example. We make it so by default we follow the masonry-flow (as I describe in #5675 (comment)) AND also take the |
It looks like everyone agrees that the use case of providing more granular control over the reading flow is valid. So I guess, the main question here is whether this can be handled via the existing Sebastian |
https://webkit.org/demos/grid3/museum/ shows an example of auto-flowed items, with one item in the righthand corner. Similar layouts could be done with mixed-span grid items and dense packing, which would need
reading-flow
to order the items, but needs one special item to be first or last or whatever. AFAICT, thereading-flow
property can't handle this case...The text was updated successfully, but these errors were encountered: