I've produced a proposal for a CSS Scripting Layout specification.
I've extended Chrome as a sample implementation.

I'd like to recieve thoughtful feedback from interested parties here.

http://blogs.eforceglobal.com/dkaris...07/16/536.aspx
<
CSS Scripting Layout... a new set of CSS properties and object specifications that together compose a powerful declarative means to describe complex arbitrary layout criteria that are both reusable and extensible. The new properties are Javascript expressions that are woven together in a constraint resolving system to perform a specified layout. Additionally, a set of global objects defined in the constraint resolution Javascript execution environment enable powerful operations to be expressed succinctly resulting in more readable and compact layout specifications.
>