The GSS project use the Cassowary solver to constrain CSS. (Presentation)
It allows you to write css in a very simple syntax and use webworkers to compute everything.
#button[center-x] == #form[center]
#button[bottom] == #form[bottom]
Has anyone tried to use it within an ionic/phonegap project ? Are there performance issues on mobile ?