handle position: absolute margin as child correctly