COT: css grid layouts update
COT = Completely Of Topic
Just though I would let those interested know that the css grid layouts spec has been updated, and that a few features may be 'ignored' in order to speed up making it a recommendation -
https://www.w3.org/TR/2017/CR-css-grid-1-20170209/
Currently FF has 9 more features in order to be compliant, and Chrome 7 features.
The features, at risk of dropping, (probably will be) are -
- the subgrid value
- overflow applied to subgrids
- the <percentage> value in grid-row-gap/grid-column-gap (low priority)
- application of grid placement to absolutely-positioned boxes
Which basically means that, FF has 3 in order to pass, and Chrome 1.
Also I would like to explain, (sorry Ben, no insult intended) what the specs meen when they say flexbox is one direction, and grids 2 dimension, and it has nothing to do with how one uses them, but how one defines them.
If you look at the 2 following diagrams -
Exemplary Flex Layout Example
Exemplary Grid Layout Example
You will I hope see the meaning, but for those who do not, it is the alignment of the containers, flexbox does not allow someone to tell the flex child item to span 2x the vertical space, without extra css and possibly html mark-up, css grids does this without extra mark-up -
The W3C specs says -
Although many layouts can be expressed with either Grid or Flexbox, they each have their specialties. Grid enforces 2-dimensional alignment, uses a top-down approach to layout, allows explicit overlapping of items, and has more powerful spanning capabilities. Flexbox focuses on space distribution within an axis, uses a simpler bottom-up approach to layout, can use a content-size–based line-wrapping system to control its secondary axis, and relies on the underlying markup hierarchy to build more complex layouts. It is expected that both will be valuable and complementary tools for CSS authors.
As an aside -
If the css grid features are to be 'dropped' as the specs say they may, then there is likely that both flexbox and grids will become recommendations at roughly the same time.
