> In particular, layout is tricky because DOM trees imply both bottom-up and top-down constraints.
Well you can always choose to roll your own layout algorithm and position everything in the DOM using absolute coordinates - e.g. https://diasli.de implements an 'auto layout' mechanism disregarding DOM layout.