-
Notifications
You must be signed in to change notification settings - Fork 689
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 |
The CSS Working Group just discussed
The full IRC log of that discussion<nicole> Reading flow and the mix of outflow and explicit items<nicole> asterns: limit to necessary for HTML folks to progress <nicole> Rachel: Some items you want to choose position and mix of autoplaced items. How does reading flow work with that <nicole> Rachel: probably by applying it to the container and children. Which we originally discussed and decided not to do <ydaniv> s/asterns:/astearns:/ <nicole> rachelandrew: a bit like order, but only affects reading flow <nicole> fantasai: works find for explicit source order <astearns> s/find/fine/ <nicole> fantasai: simple example of mixed - a masonry layout with a sidebar. Title, nav, etc. Positioned on right aesthetically <nicole> fantasai: would be 5th rather than 1st <florian> q+ <nicole> rachelanderew: do we fix it now or in the future. Are we leaving the door open to other solutions. How does it impact the HTML spec? Otherwise not urgent, but necessary <nicole> rachelandrew: would reading flow container also encompass this situation? <astearns> ack florian <nicole> florian: we want this now. Removed because we started with only explicit ordering, was a bad solution. Overall solution combo of 2 <nicole> florian: general scheme on container <nicole> florian: override on children <nicole> florian: design of thing that applies to container should account for being able to override children <nicole> florian: so both pieces work together <fantasai> s/so both/design both together so both/ <nicole> rachelandrew: reasonable, can bring this back. Identified use cases they hadn't considered before. Good to bring it back to spec. Also bike shed name. Does it affect HTML implementation <astearns> ack fantasai <nicole> rachelandrew: Probably doesn't, since it is just a different way of doing ordering <Di> q+ <nicole> fantasai: set of items, here is order, tells HTML to do the rest. HTML spec shouldn't change. Reading flow, reading order, and ____ will provide input to HTML <astearns> ack Di <fantasai> s/___/things like dense packing/ <nicole> di: HTML side is reading flow container, shouldn't override it. Should be fine for the hTML spec <nicole> asterns: design as a whole rather than piecemeal <nicole> di: agree <nicole> astearns: Resolution to restore previous reading order property and use it as a starting point for reading order flow. <astearns> ack fantasai <TabAtkins> +1 <nicole> fantasai: as a starting point, define that if the reading order of 2 items is equivalent, reading flow breaks the tie <nicole> RESOLVED: Resolution to restore previous reading order property and use it as a starting point for reading order flow. <nicole> RESOLVED: as a starting point, define that if the reading order of 2 items is equivalent, reading flow breaks the tie <dbaron> is there a new condition that it only works in reading order containers? <nicole> astearns: David can you raise an issue? <nicole> fantasai: does the reading order prop only impact reading order containers or does attempting to use reading flow or order cause it to become a reading order container <nicole> rachelanderew: masonry is an exception, but for everything else you'd need to say on the container <dbaron> (I was just asking that to try to ensure the resolutions capture stuff that was said earlier in the discussion.) <dbaron> Present- <nicole> fantasai: default order is source order. HTML needs a concept of is it a reading order container, must be yes to do reordering. If it has a non initial value on any child than the container needs to be a reading flow container. From css user perspective, either do it auto or make them change something else <nicole> racheandrew: prefers explicit, like flexbox <nicole> rachelandrew: always positive, this is a reading flow container, so they know they are reordering. Doing it by accident without thinking would be bad <astearns> notes that the explicit container may not only be due to reading-flow being set explicitly, if the default value creates reading flow containers for some layout modes <nicole> fantasai: not sure. Cases where we do want to double opt in. Other cases where the child can decide on their own <dbaron> (from my own perspective I might ask whether we want a more complicated name so it doesn't look like reading-order is a simpler thing than reading-order-items) <nicole> fantasai: for example z index is just the child <fantasai> we renamed reading-order-items to reading-flow <fantasai> dbaron: ^ |
I was considering whether we could reuse tabIndex to explicitly set item's focus order, but came to the conclusion that we should avoid that. Adding the reasoning here for prosperity.
|
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: