JavaScript is the final layout system. No declarative language can ever handle every use case. Fortunately I rarely need to resort to JS since grid came out.
I’m not sure a constraint based system would do much good as it would sit awkwardly in the middle of grid and JS.