The problem with a constraint system is that it would likely be even more subject to performance problems than the current setup. IMO what CSS layout really needs is: 1. A "proportion of available space" unit. That is, something like the fr unit in CSS grid except applicable to the width/height properties so it can be used in all layout modes and without an implying content-based minimum size (like fr does). 2. A new…
What CSS needs (opinion, caveat, really far away in advanced features) is: - A way to get values from sliders (type="range") (and style and modify them easily). Really, a way to get "value" from any element. - A way to have radio / checkboxes or labels inside labels work for multiple choices (or something other than making enormous arrays of radio selections and CSS choices) - A way to have indexed arrays of numbers…
See: https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Com...