2 ms·
As far as I can tell there are three opinions on CSS: 1) CSS is a single-pass layout programming language. It is impressive, but the single-pass constraint ma
by jcampbell1 12y ago
As far as I can tell there are three opinions on CSS:
1) CSS is a single-pass layout programming language. It is impressive, but the single-pass constraint makes certain layouts very difficult to achieve.
2) CSS should be replaced with a constraint solver. Look how powerful Auto-Layout in iOS is. With a constraint solver, you are only limited by your imagination and intelligence, not some single-pass rule.
3) CSS sucks because people think visually in terms of grids and boxes, and it is too hard to do even the simplest thing with a single pass layout language.
I am personally in Camps 1 & 2, but Camp 3 is by far the most vocal. Constraint solvers are powerful, but they require a huge amount of thinking, and you end up with stuff like '==|50[x(30)]<=|==' as the interface.
I think the "flexbox" stuff is pretty good as it is an attempt to accommodate both groups 2 & 3.