News for hackers. Stuff that matters.
Re:CSS Grid Level 2 – subgrid is coming to Firefox by galaxyLogic on Wednesday June 05, 2019 @04:44PM (#20108928)
Yes flex is cool because you don't need a new type of element just add the property "display: flex" to anything.

I think Grid is a bit more complicated, more to learn. CSS is getting better but at the same time it's getting more complex in total.

Re:CSS Grid Level 2 – subgrid is coming to Firefox by nicoburns on Wednesday June 05, 2019 @05:44PM (#20109488)
I actually think grid is simpler. The flex properties are confusing and make common cases complicated. Grid fits my mental model of what I am trying to achieve pretty much 1:1.
Re:CSS Grid Level 2 – subgrid is coming to Firefox by bobthepanda on Wednesday June 05, 2019 @04:58PM (#20109060)
Grid doesn’t really use a new type of element either.

I’m just happy to be able to layout things 2D in a way that isn’t totally bonkers and do weird contrived calculations to make everything fit in the viewport. My only wish remaining is a unit that is like fr for grid layout but can be the same value for both row and grid (so an equivalent to vmin for viewport)

Re:CSS Grid Level 2 – subgrid is coming to Firefox by duxup on Wednesday June 05, 2019 @04:46PM (#20108955)
It makes sense.

Flex was finally FOR (I think it was for) layout, from the start. It's simple, works for a lot of use cases.

Grid is for layout, but serious layout.

It's good to have both.... well anything really considering the history.