[csswg-drafts] [css-grid][css-flexbox] Hybrid flex-grid module possible? (#5039)

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

== [css-grid][css-flexbox] Hybrid flex-grid module possible? ==
I would like to propose a hybrid flex-grid module that combines the aspects of flexbox and grid in opposing directions.

- A grid is defined along one axis, either horizontal or vertical, with columns or rows defined in the way one would using the grid module, respectively
- Each track in the grid then acts as if it's a flexbox, and can have most (probably not all) flex box properties set accordingly
- Items can then be positioned and spanned along the grid axis as if they're on a grid
- These items can then pack dense or loose along the flex axis, depending on the flex box properties set

The design cases that I see this being useful would be, say, a website that has multiple standalone "modules" of content (like sections, articles, figures, etc.) that the developer wants to position explicitly along one axis as if on a grid, but allow to pack densely like flexbox along the other axis, without compartmentalizing everything into parent containers, so that content can be shuffled around or even shuffled together if the browser window gets resized.

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

Received on Saturday, 2 May 2020 01:23:44 UTC