News for hackers. Stuff that matters.
Re:CSS is unnecessary given a layout language by drcode on Thursday July 03, 2014 @09:37PM (#7986830)
Suppose you want to create the largest possible square div inside the rectangle of another div. Any layout language that can't let me satisfy such a simple and obvious layout constraint is a travesty.

CSS will not let you do this, even with flexbox.

Re:CSS is unnecessary given a layout language by girvo on Thursday July 03, 2014 @10:15PM (#7986946)
Re:CSS is unnecessary given a layout language by drcode on Friday July 04, 2014 @12:22AM (#7987329)
Does GSS work with Reactjs? If so, I might give it a try.
Re:CSS is unnecessary given a layout language by mercer on Friday July 04, 2014 @05:57PM (#7990340)
If GSS doesn't touch the markup, I think it would.
Re:CSS is unnecessary given a layout language by timdorr on Thursday July 03, 2014 @10:56PM (#7987089)
Huh? Flexbox will certainly let you do this: http://plnkr.co/edit/taXhuM4tetbNTlaKyjDr?p=preview (you shouldn't see any of the red box, just the green box)

Am I misinterpreting what you mean?

Re:CSS is unnecessary given a layout language by ars on Thursday July 03, 2014 @11:52PM (#7987256)
> Am I misinterpreting what you mean?

Yes. The red one should be a rectangle and the green one a square. In your case the red one is also a square.

Re:CSS is unnecessary given a layout language by Lerc on Thursday July 03, 2014 @10:05PM (#7986911)
Has anyone assembled a list of things such as this that CSS cannot do?

FlexBox always felt like it was a direct response to a few specific cases rather than a generalized gain in flexibility.

Re:CSS is unnecessary given a layout language by DougWebb on Thursday July 03, 2014 @10:47PM (#7987060)
I'm pretty sure FlexBox solves the "Why the hell can't I center these things vertically relative to one another?!?" problem that CSS has had for a very long time. Unfortunately, that wasn't the only problem CSS has had. Now we have to wait for CSS Grids, which look awesome and all, but based on history (floats, positioning, inline-blocks, flexbox) I'm not getting my hopes up that Grids will finally make CSS layouts reasonably adequate. (I'm not even raising the bar to 'usable'.)
Re:CSS is unnecessary given a layout language by scotty79 on Friday July 04, 2014 @02:33PM (#7989764)
Flexbox also doesn't interoperate with grids very well. Also can't lay out elements that are not siblings.