| Make flexbox the default layout for everything, and add a flex-snap feature that will snap to the nearest multiple of some given size. I'm not sure we actually would still need grids. I also wonder if you couldn't have a more transparent and parameterizable auto width algorithm based on a lowest cost solver. So you could say "If this element wraps, it's cost 50", meaning you want all the boxes to stay on as few lines as possible. Or "Every em of height this element has is cost 10, if anything triggers a scrollbar, that's cost 100". Maybe instead of flex-grow, you'd just add negative cost to the width of something. You could have alternate rulesets so the browser could choose one or the other for lowest overall page cost. Also, class inheritance. I don't see why that's not a thing. "Not needing processors" should be a pretty big design goal. |