[library] Consolidate more child start edge code
[library] Properly support negative item margins