Refactor a bit and compute vertical margins as well.
Update rust-css and fix some dynamic borrow check failures
Add comments and compute heights properly
Update border rendering
Rename `with_imm_base` to `with_base`.
test_slam_layout, a new layout perf test case
Stop rendering when script queries layout
Address review comments
Merge
Oops. Forgot to add some merging changes.